Fokko commented on issue #1254:
URL: 
https://github.com/apache/iceberg-python/issues/1254#issuecomment-2445382202

   @djouallah I don't think it is obvious, but you can add the location to the 
catalog itself:
   
   ```python
   catalog = SqlCatalog(
         "default",
         **{
             "uri"                : userdata.get("postgresql_db"),
             "adlfs.account-name" : userdata.get("account_name") ,
             "adlfs.account-key"  : userdata.get ("AZURE_STORAGE_ACCOUNT_KEY"),
             "adlfs.tenant-id"    : userdata.get("azure_storage_tenant_id"),
             "py-io-impl"         : "pyiceberg.io.fsspec.FsspecFileIO",
             "legacy-current-snapshot-id": True,
   
             "location": "/tmp/some_location/"  #  Result: 
/tmp/some_location/table/
             # or Hive style:
             "location": "/tmp/some_location/"  # Result: 
/tmp/some_location/schema.db/table/
         },
   )
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to