-
Notifications
You must be signed in to change notification settings - Fork 416
Closed
Description
Feature Request / Improvement
currently to connect to onelake Iceberg Rest Catalog, you use something like this, which seems to have a lot of redundancy
from pyiceberg.catalog import load_catalog
catalog = load_catalog("onelake", **{
"uri" : onelake_endpoint,
"token" : os.environ.get('AZURE_STORAGE_TOKEN'),
"warehouse" : f"{ws}/{lh}.lakehouse",
"adls.account-name" : onelake ,
"adls.account-host" : f"{onelake}.blob.fabric.microsoft.com" ,
"adls.token" : os.environ.get('AZURE_STORAGE_TOKEN') ,
})
catalog.list_tables(schema)
in an ideal world, something like this will be nice
from pyiceberg.catalog import load_onelake
catalog = load_onelake(warehouse_path)
kevinjqliu
Metadata
Metadata
Assignees
Labels
No labels