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

   ## Summary
   
   Fixes #19102.
   
   This PR prevents unsafe numeric literal conversions during Flink filter 
pushdown into Apache Iceberg.
   
   Previously, comparisons involving wider numeric literals could produce 
incorrect query results or fail during predicate binding.
   
   ## Changes
   
   - Detect potentially unsafe numeric type conversions before pushing 
predicates into Iceberg.
   - Preserve safe integral widening, such as INTEGER to BIGINT.
   - Leave unsupported numeric comparisons for Flink to evaluate.
   - Add unit tests for numeric conversion behavior.
   - Add Flink SQL integration regression tests.
   
   ## Validation
   
   Successfully executed:
   
   - `TestFlinkFilters`
   - `TestFlinkTableSource`
   - `spotlessJavaCheck`
   
   **Result:** BUILD SUCCESSFUL.
   
   ## Collaboration
   
   Thanks to @thaddywu for reporting the issue and providing detailed 
reproduction steps.
   
   I have implemented a candidate fix with regression tests and welcome 
feedback or collaboration on the approach, particularly around safe numeric 
conversions and any additional edge cases.


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