masonh22 opened a new issue, #22374:
URL: https://github.com/apache/datafusion/issues/22374

   ### Describe the bug
   
   When pushing down the filter `column LIKE foo\_%` (i.e. all rows that start 
with `foo_`), the pruning predicate logic doesn't account for escape sequences 
in the compared string.  Instead, it splits the string at the first wildcard, 
either "_" or "%", and uses that prefix as the literal to search for, producing 
a pruning predicate like `min <= 'foo\' && 'foo\' <= max`.  This gives 
incorrect results depending on the min/max values for the row group.
   
   ### To Reproduce
   
   I will write a test that reproduces this.
   
   ### Expected behavior
   
   For `column LIKE foo\_%`, we should push down `min <= 'foo_' && 'foo_' <= 
max`.
   
   ### 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