[ 
https://issues.apache.org/jira/browse/ARROW-13157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ian Cook updated ARROW-13157:
-----------------------------
    Description: 
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:
{code:java}
 Error: NotImplemented: find_substring with ignore_case
{code}
R code to replicate the error is below, though depends on a currently unmerged 
branch:
{code:java}
df <- tibble(x = c("Foo and Bar", "baz and qux and quux"))

df %>%
      Table$create() %>%
      mutate(x = arrow_find_substring(x, options = list(pattern = "b", 
ignore_case = TRUE))) %>%
      collect()
{code}

Since case-insensitive matching will be implemented using RE2, this is also an 
opportunity to add a {{find_substring_regex}} kernel.

  was:
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:
{code:java}
 Error: NotImplemented: find_substring with ignore_case
{code}
R code to replicate the error is below, though depends on a currently unmerged 
branch:
{code:java}
df <- tibble(x = c("Foo and Bar", "baz and qux and quux"))

df %>%
      Table$create() %>%
      mutate(x = arrow_find_substring(x, options = list(pattern = "b", 
ignore_case = TRUE))) %>%
      collect()

{code}


> [C++] Add find_substring_regex kernel and implement ignore_case for 
> find_substring
> ----------------------------------------------------------------------------------
>
>                 Key: ARROW-13157
>                 URL: https://issues.apache.org/jira/browse/ARROW-13157
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Nic Crane
>            Assignee: David Li
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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:
> {code:java}
>  Error: NotImplemented: find_substring with ignore_case
> {code}
> R code to replicate the error is below, though depends on a currently 
> unmerged branch:
> {code:java}
> df <- tibble(x = c("Foo and Bar", "baz and qux and quux"))
> df %>%
>       Table$create() %>%
>       mutate(x = arrow_find_substring(x, options = list(pattern = "b", 
> ignore_case = TRUE))) %>%
>       collect()
> {code}
> Since case-insensitive matching will be implemented using RE2, this is also 
> an opportunity to add a {{find_substring_regex}} kernel.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to