stevenzwu opened a new pull request, #19105: URL: https://github.com/apache/iceberg/pull/19105
Data manifests written by v1/v2 tables have no first_row_id. When such a table is upgraded directly to v4, these manifests are carried into the root as EXISTING entries and should be assigned a first_row_id. The root manifest writer already assigns it and counts the rows, but RootTrackedFileWrapper rejects the assignment with "Missing first-row-id for EXISTING file", so the first append after the upgrade fails. This fixes RootTrackedFileWrapper to allow the assignment for EXISTING data manifests without a first_row_id; other entries without one are still rejected. Test plan: - v1/v2 table with a snapshot, upgrade to v4, append: the root holds the new file (ADDED) and the carried-forward manifest (EXISTING) with assigned the `first_row_id`. - Root wrapper assigns `first_row_id` to an EXISTING data manifest without one. - Root wrapper still rejects DELETED, REPLACED, and MODIFIED entries without `first_row_id`. Generated-by: Cursor (Claude Opus 5.5) -- 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]
