Files
seaweedfs/weed/s3api
8f4663f516 iceberg: a Lance record loads with read-only credentials (#13159)
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>
2026-11-30 11:30:50 -08:00
..
2024-07-04 11:00:41 -07:00

see https://blog.aqwari.net/xml-schema-go/

1. go get aqwari.net/xml/cmd/xsdgen
2. Add EncodingType element for ListBucketResult in AmazonS3.xsd
3. xsdgen -o s3api_xsd_generated.go -pkg s3api AmazonS3.xsd
4. Remove empty Grantee struct in s3api_xsd_generated.go
5. Remove xmlns: sed s'/http:\/\/s3.amazonaws.com\/doc\/2006-03-01\/\ //' s3api_xsd_generated.go