adriangb commented on PR #12978: URL: https://github.com/apache/datafusion/pull/12978#issuecomment-2423188841
Consider the values `["ABC", "XYZ"]` with stats `["AB", "XY"]` and the filter `col like 'A%'`. This becomes `'AB' <= 'A' AND 'A' <= 'XY'` which is false, but we need true. To fix this we'd need to truncate the stats to the length of the filter to get `'A' <= 'A' AND 'A' <= 'XY'` which then gives the right result. `%A%` is just an obvious case because you get `''` as the prefix which gives obvious issues. -- 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]
