mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
AWS Glue serves the Apache Iceberg REST catalog at glue.<region>.amazonaws.com/iceberg, the catalog Spark, PyIceberg, Trino and DuckDB attach to read and write Glue's Iceberg tables. Floci had no such endpoint, so none of them could write an Iceberg table through it, and DuckDB, which writes Iceberg only through an attached catalog, could not write one at all. Floci now serves it at /iceberg, routed by the request's signing service as other contested REST paths are, with the twelve operations AWS lists for it. A namespace is a Glue database and a table a Glue table with table_type ICEBERG. The writer writes data files and manifests; a commit checks the request's requirements, applies its updates to the table's metadata JSON, writes the next metadata file next to the last one and moves the Glue table's metadata_location to it, refused with CommitFailedException when the Glue table changed since. A staged create is committed with assert-create, as DuckDB and Spark create tables. No Iceberg library is involved.