You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "kevinjqliu (via GitHub)" <gi...@apache.org> on 2024/07/02 16:56:30 UTC

Re: [I] (AWS Lake Formation shared resources) Iceberg tables in AWS Glue catalog has a different root namespace than the original [iceberg-python]

kevinjqliu commented on issue #845:
URL: https://github.com/apache/iceberg-python/issues/845#issuecomment-2189625956

   To clarify, the example above does not work unless the `table.identifier` override is applied, right? 
   
   Non-working example:
   ```
   database = 'db'
   table_name = 'table'
   table = catalog.load_table(f'{database}.{table_name}')
   table.overwrite(df)
   ```
   
   Working example:
   ```
   database = 'db'
   table_name = 'table'
   table = catalog.load_table(f'{database}.{table_name}')
   table.identifier = (catalog_name, database, table_name)
   table.overwrite(df)
   ```
   
   For Glue catalog, the catalog name is used as part of the table identifier 
   https://github.com/apache/iceberg-python/blob/a6cd0cf325b87b360077bad1d79262611ea64424/pyiceberg/catalog/glue.py#L326
   
   Maybe there's a mismatch between the glue name and the catalog name 


-- 
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-unsubscribe@iceberg.apache.org

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


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