manuzhang opened a new pull request, #18317: URL: https://github.com/apache/iceberg/pull/18317
Spark 4.2 changelog tables omit V3 row lineage metadata and lack V3 changelog coverage. This ports the behavior from #16012: changelog tables expose the same metadata columns as regular tables, and tests exercise V3 reads and changelog views after a V2-to-V3 upgrade. Selecting lineage with changelog metadata also avoids mismatched reader field positions. The shared Avro reader also returns null lineage for pre-upgrade files with no first row ID. DELETE changelog rows retain the deleted data file's lineage. Related PR: #16012 Test plan: Verify null lineage for historical V2 Avro rows after upgrading to V3, and valid lineage inheritance for V3 files. Run the core Avro reader, generic format-model lineage, Spark Avro lineage, and changelog reader/table/view tests. Build the affected modules and run Spotless, Checkstyle, and `git diff --check`. --- **AI Disclosure** - Model: GPT-6 - Platform/Tool: Codex - Human Oversight: partially reviewed (original changes marked reviewed; review follow-up unreviewed) - Prompt Summary: Port PR #16012's V3 changelog behavior and tests to Spark 4.2; generate the changelog projection-ordering fix and a V3 DELETE-path regression test that verifies the original row IDs and sequence numbers are retained. Generate the missing Avro lineage-field fix and core/Spark upgrade regression tests. -- 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]
