mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
GetTable and GetTableMetadataLocation never returned warehouseLocation, which the S3 Tables model marks required, so Spark's S3TablesCatalog had nowhere to write: CREATE TABLE failed with "Invalid S3 URI, cannot determine scheme: null/metadata/00000-...metadata.json". CreateTable now creates the table's warehouse, a bucket of its own named like AWS's (<uuid>--table-s3), and both responses report it; a table persisted before this gets one the first time it is read. An Iceberg client writes the table's files there and commits with UpdateTableMetadataLocation, which already existed. DeleteTable deletes the warehouse with its contents, as deleting an S3 Tables table deletes its data. GetTable also reports the required createdBy and modifiedBy.