andygrove opened a new issue, #3863:
URL: https://github.com/apache/arrow-datafusion/issues/3863

   **Describe the bug**
   
   There has been a regression in pushing BETWEEN expressions down to table 
scans.
   
   ## before
   
   Table scan filter: CAST(col1 AS Int64) BETWEEN Int64(4) AND Int64(4) + 
Int64(3)
   
   ## after
   
   Table scan filter: CAST(col1 AS Int64) >= Int64(4), CAST(col1 AS Int64) <= 
Int64(7)
   
   Performing the CAST twice is not efficient.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   **Expected behavior**
   A clear and concise description of what you expected to happen.
   
   **Additional context**
   Add any other context about the problem here.
   


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

Reply via email to