Jackie-Jiang opened a new pull request #7659: URL: https://github.com/apache/pinot/pull/7659
## Description For issue #7657 Currently `LIKE` pattern is converted into `REGEXP_LIKE` pattern and handled as `REGEXP_LIKE`. But there is one semantic difference not handled properly: `LIKE` requires matching the entire string, while `REGEXP_LIKE` only requires the string to contain the pattern. Fix the `LIKE` predicate by adding `^` and `$` around the pattern to force the full string matching. Also fix the issue of directly using `REGEXP_LIKE` pattern as Lucene `REGEXP` pattern, where `^` and `$` are not allowed, and is performing full match. ## Release Notes Fix `LIKE` to be SQL compliant. Fix `REGEXP_LIKE` to have the same behavior with or without the Lucene FST index. -- 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]
