ShashidharM0118 opened a new pull request, #19434:
URL: https://github.com/apache/datafusion/pull/19434

   ## Which issue does this PR close?
   
   - Closes #19092
   
   ## Rationale for this change
   
   When predicates reference missing columns (common in schema evolution), the 
column is replaced with a NULL literal. Expressions like `IS NOT NULL(NULL)` 
weren't being simplified, causing row group pruning to fail. This PR adds 
simplification so these expressions evaluate correctly.
   
   ## What changes are included in this PR?
   
   1. Add `simplify_is_null_expr()` function to simplify `IS NULL(literal)` and 
`IS NOT NULL(literal)` expressions
   2. Integrate the simplification into `PhysicalExprSimplifier` pipeline
   3. Handle literal arguments in `build_predicate_expression()` for pruning
   4. Add tests to verify the simplification works
   
   ## Are these changes tested?
   
   ## Are there any user-facing changes?
   
   No


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