stevenzwu opened a new pull request, #18853: URL: https://github.com/apache/iceberg/pull/18853
Adds reusable wrappers that write a TrackedFile, with the tracking supplied by the writer, using the v4 tracked file schema. The leaf wrapper accepts only data files and writes tracking as given so unassigned sequence numbers and first row IDs are inherited on read, rejecting null sequence numbers that cannot be inherited. The root wrapper requires the tracking to carry a snapshot ID and writes the sequence numbers, manifest min sequence number, and first row ID that the spec requires in the root manifest, assigning the commit's values to files added by the commit. Both project spec partitions to the union partition type when writing, and write a null spec ID and partition for files whose spec has no partition fields, as the v4 spec requires for unpartitioned files. Content stats are written through a view laid out by the manifest's content stats type, so stats from any ContentStats implementation, including `MapBackedContentStats` adapted from DataFile metrics, are written at the correct positions. Generated-by: Cursor -- 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]
