JeonDaehong opened a new pull request, #19346: URL: https://github.com/apache/iceberg/pull/19346
#15268 made scans find equality delete columns that were dropped from the table, by passing all table schemas to `DeleteFileIndex`. The index that `MergingSnapshotProducer` builds for commit validation still gets only the specs, so it looks fields up in the current schema. So if a concurrent commit adds equality deletes on a column that is then dropped, a rewrite or overwrite that validates from an earlier snapshot fails with `IllegalArgumentException: Cannot find field for ID 1`. That includes a rewrite that keeps the starting sequence number, which doesn't need those deletes at all. This passes the table schemas there too. Two tests in `TestRewriteFiles`: the rewrite with the starting sequence number now commits, and the one without it fails with the usual "found new delete for replaced data file". Both fail on main with the IAE. -- 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]
