Skip to content

Instantly share code, notes, and snippets.

View liko9's full-sized avatar

liko liko9

View GitHub Profile
@liko9
liko9 / migrate.py
Created March 13, 2024 19:27
Use pyiceberg to migrate from one catalog to another
#!python3
from pyiceberg.catalog import load_catalog
from pyiceberg.exceptions import NoSuchPropertyException
# This assumes that the following catalogs are defined in your ~/.pyiceberg.yaml
hive = load_catalog("hive")
tabular = load_catalog("rest")
for ns in hive.list_namespaces():
for t in hive.list_tables(ns):

Keybase proof

I hereby claim:

  • I am liko9 on github.
  • I am liko9 (https://keybase.io/liko9) on keybase.
  • I have a public key ASBXiSuXhF0c_hx-Bic4e1EolIYjCURrF58uCmIAQQZp3go

To claim this, I am signing this object: