You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The find_substring compute function uses the MatchSubstringOptions Options class. However, when I try to set ignore_case to TRUE, I get the following error:
David Li / @lidavidm:
IIRC, this should be doable, but requires some trouble: we would use RE2 to do the case-insensitive search, but RE2 doesn't return the match position unless you have a capture group. However, then you can't use the 'literal' option anymore and have to escape all regex characters in your search string. Though I see RE2 has a QuoteMeta function to do this for you, so it shouldn't be that bad. I'll probably pick this up soon unless someone else wants to do it.
Ian Cook / @ianmcook:
RE2 also treats everything between \Q and \E in a regex as literal text, although then you need to escape literal \E in the search string.
The find_substring compute function uses the MatchSubstringOptions Options class. However, when I try to set ignore_case to TRUE, I get the following error:
R code to replicate the error is below, though depends on a currently unmerged branch:
Since case-insensitive search will be implemented using RE2, this is also an opportunity to add a
find_substring_regex
compute function.Reporter: Nicola Crane / @thisisnic
Assignee: David Li / @lidavidm
Related issues:
PRs and other links:
Note: This issue was originally created as ARROW-13157. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: