mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
iceberg: the Iceberg REST catalog keeps off Lance tables A Lance dataset's catalog record lives in the same table bucket as Iceberg tables, and the Iceberg REST endpoint serves it as a table: LoadTable vends write credentials over the dataset's directory to anyone who may update the table, and CommitTable or CommitTransaction on it writes Iceberg metadata into the dataset's directory and repoints the record at it. Reproduced on master: the record's metadataLocation became finance/vec/metadata/v2.metadata.json, its format still LANCE. notIcebergTable now refuses a commit and a transaction on a record of another format with 400, after the commit's authorization; LoadTable serves a catalog-only record as an empty table (its metadata is never read as Iceberg) with read-only credentials. A REST create of the name already answered 409. Test: TestIcebergRESTKeepsOffLanceTables: an Iceberg table's owner gets write credentials (positive control), the Lance table read-only ones; commit and transaction 400; the Lance record unchanged. Red with each of the three rules undone. Co-authored-by: Javier de la Torre <jatorre@carto.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>