sdf-jkl opened a new issue, #20050:
URL: https://github.com/apache/datafusion/issues/20050

   ### Is your feature request related to a problem or challenge?
   
   With #18320 closed we now support evaluating pre-image for binary comparison 
operators: `(=, !=, >, >=, <. <=, is distinct from, is not distinct from)`
   
   It would be great to extend `preimage` to support `InList` expressions, like:
   `where date_part(col, 'YEAR') IN (2024, 2025)`
   
   part of #19946 
   
   ### Describe the solution you'd like
   
   Add Inlist expression support to 
[expr_simplifier.rs](https://github.com/apache/datafusion/blob/main/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs),
 similar to `unwrap_cast` 
https://github.com/apache/datafusion/blob/20d5f06a554f39407e52dd1d4848267dbc1467ce/datafusion/optimizer/src/simplify_expressions/expr_simplifier.rs#L1946-L1948
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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