Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-13157

[C++] Add find_substring_regex kernel and implement ignore_case for find_substring

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0
    • C++

    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:

       Error: NotImplemented: find_substring with ignore_case
      

      R code to replicate the error is below, though depends on a currently unmerged branch:

      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()
      

      Since case-insensitive search will be implemented using RE2, this is also an opportunity to add a find_substring_regex compute function.

      Attachments

        Issue Links

          Activity

            People

              lidavidm David Li
              thisisnic Nicola Crane
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h