rla3rd commented on issue #17919: URL: https://github.com/apache/iceberg/issues/17919#issuecomment-7437644192
Thanks for the proposal and the merged spec text (#17918). Reading this from the perspective of an implementer building an embedded query engine directly over Iceberg tables (Parquet + Puffin sidecars, no external services), the schema/value semantics in the spec are clear and workable. Before committing to adopting the type, we need to make decisions on a few points the spec currently leaves open, and I want to lay them out concretely so they are easy to discuss: **1. Lifecycle and garbage collection of referenced bytes** The spec states that a `file` entry referencing a `uri` does not guarantee its existence. That is an honest scoping decision, but it leaves an implementer with no contract for the hardest part of the feature: - Who owns the referenced bytes? Is the table (and therefore `expire_snapshots` / orphan-file cleanup) expected to consider externally referenced objects, or are they entirely the writer's responsibility? - Is there any intended mechanism for detecting dangling references (periodic verification, reference counting, a metadata table of live references), or is this explicitly out of scope forever? - If a referenced object is deleted while rows still point at it, is there any recommended recovery story, or is the row simply broken? **2. Write ordering and consistency** - Is "upload the referenced bytes, then commit the row" the intended protocol? The spec permits committing a row whose `uri` does not resolve, so I assume yes, but it would help to state the expected write pattern explicitly. - Related: when should `checksum` be verified (write time, read time, or never)? The sub-field exists but no algorithm is mandated and no verification semantics are defined. Is a recommended default algorithm planned (SHA-256, xxHash), and is mismatch handling left to the reader? **3. Access control for external URIs** - FileIO gives engines a well-defined way to reach table locations. Arbitrary external URIs are a different trust domain: should engines be expected to resolve them through FileIO, through credential vending, through pre-signed URLs supplied by the writer, or is this entirely undefined? - Anything the spec can say here (even "implementations must not embed credentials in `uri`") would prevent divergent behavior. **4. Reader fallback** - What should a v3 reader or an engine that has not implemented the type do when it encounters a `file` column: fail the scan, return null, project it as binary? A one-line recommendation would keep cross-engine behavior consistent. **5. REST and Puffin surfaces** - The issue's checkboxes show REST and Puffin unchecked. Is a REST-spec surface planned (e.g., how `file` values appear in row data over the REST catalog), and are `file` values expected to be representable in Puffin blobs, or is Puffin intentionally out of scope? For context on why these matter for the adoption decision: an engine that stores byte references in `file` columns inherits all of the lifecycle problems above with no spec guidance, whereas storing the bytes inline inherits only storage cost. The gap between those two options is exactly the set of decisions listed here, so clarity on even a subset would make the adoption call much easier. Happy to help test reference-implementation behavior against an embedded-engine setup once the direction is settled. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
