TatvagnaTandel opened a new pull request, #19239:
URL: https://github.com/apache/iceberg/pull/19239

   Flink 2.3 projections lose Iceberg field defaults when they reconstruct the 
schema. Older rows then return `NULL` for an added column with an initial 
default, and filters against that default miss those rows. Restoring docs and 
compatible primitive defaults by field ID after type repair lets Parquet and 
Avro return the initial default for those rows. An ORC scan of an older file 
that lacks the projected field now raises the reader's existing 
unsupported-default error.
   
   Refs #19217
   
   - Verify projection and filtering after schema evolution on both Flink 2.3 
sources with Parquet and Avro, including preservation of an explicitly stored 
`NULL`.
   - Verify nested UUID defaults and integer-to-long default promotion in both 
schema conversion overloads.
   - 38 focused Gradle tests passed and 1 was skipped. All 8 new cases failed 
on the base revision without the fix.
   - Confirmed the ORC error on both Flink sources in a separate local 
reproduction.
   - Repository-wide `spotlessApply` and Flink 2.3 `checkstyleMain`, 
`checkstyleTest`, and `build` passed. The full module suite had 4,860 passes, 
458 skips, and zero failures.
   
   ---
   **AI Disclosure**
   - Model: GPT-6 (original variant unknown)
   - Platform/Tool: ChatGPT generated the Flink schema conversion changes and 
regression tests. Codex prepared the PR and ran local verification.
   - Human Oversight: [unknown - human to fill in]
   - Prompt Summary: Reproduce #19217 and draft the Flink schema conversion 
changes and regression tests, then prepare the contribution and verify the 
staged patch.
   


-- 
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]

Reply via email to