The GitHub Actions job "Python CI Docs" on 
iceberg-python.git/fix-glue-create-table-s3tables has succeeded.
Run started by GitHub user jamesbornholt (triggered by jamesbornholt).

Head commit for run:
97089094995eca37106e910462a248c2e74b687d / James Bornholt <[email protected]>
fix(glue): Support create_table for S3 Tables federated databases

GlueCatalog.create_table() fails for S3 Tables because it tries to
write Iceberg metadata to a warehouse-derived location before
registering the table in Glue. S3 Tables manages storage internally,
so the location is not known until the table exists in the service.

Detect S3 Tables federated databases (FederatedDatabase.ConnectionType
== "aws:s3tables") and use a two-phase create: first create a minimal
table entry in Glue to have S3 Tables allocate storage, then write
Iceberg metadata to the managed location and update the Glue table
with the metadata pointer. On failure, clean up the table entry.

This follows the same "pre-create then update" pattern used by the
Java GlueCatalog when LakeFormation is enabled
(GlueTableOperations.createGlueTempTableIfNecessary).

Report URL: https://github.com/apache/iceberg-python/actions/runs/22089728993

With regards,
GitHub Actions via GitBox

Reply via email to