Arrow comparison LIKE
/ILIKE
/NLIKE
kernels do not escape all special characters
#1069
Labels
LIKE
/ILIKE
/NLIKE
kernels do not escape all special characters
#1069
Describe the bug
Characters such as
[
and.
are sometimes treated as regular expressions rather than literals in regular expressionsThe arrow regular expression kernels such as
like_utf8
https://github.com/apache/arrow-rs/blob/master/arrow/src/compute/kernels/comparison.rs#L311-L323 take limited SQL style string matching patterns (e.g.%
).However, under the covers a regular expression matching library is used but special regular expression characters are not escaped. @ovr added code to handle
(
and)
in #1042 but there are other special characters as wellTo Reproduce
Expected behavior
This test should pass (is what postgres produces)
Additional context
Follow on to #1042 where @ovr fixed the parenthesis issue
The text was updated successfully, but these errors were encountered: