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

   Oh! So the returned table name differs from the one specified in 
`create_table`. 
   And this assertion will fail. 
   
   ```
   database = 'demo_fs'
   table_name = 'demo_table_20240620_pyiceberg1'
   
   df = pd.DataFrame({'col_1': [1, 2], 'col_2': ['a', 'b']})
   df = pa.Table.from_pandas(df)
   
   original_table_name = f'{database}.{table_name}'
   
   table = catalog.create_table(
       identifier=original_table_name,
       schema=df.schema
   )
   
   assert table.identifier == original_table_name
   ```
   
   original table name is `demo_fs.demo_table_20240620_pyiceberg1`
   but table.identifier is `('AwsGlueCatalog', 'gov-demo_fs', 
'demo_table_20240620_pyiceberg1')`
   
   Do you know if there's docs on Glue/LakeFormation behavior that would 
suggest the addition of the `gov-` prefix?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to