apache / apache/arrow

[C++][Compute] Support string_view/binary_view in scalar string predicate kernels

Open
#50,478 0 comments 0 reactions 1 assignee Claimed by @fangchenli View on GitHub
Component: C++ Type: enhancement
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the enhancement requested

The scalar string predicate/measurement kernels return NotImplemented for string_view / binary_view input, so evaluating a string predicate on a view array requires casting the whole column to utf8/binary first.

This adds view support to the kernels that read a string and emit a fixed-width type (no string output):

- match_substring(_regex), match_like, starts_with, ends_with
- find_substring(_regex), count_substring(_regex)
- binary_length, utf8_length
- string_is_ascii, ascii_is_*, utf8_is_*

Kernels that emit strings/lists (utf8_upper/lower/trim*, replace_substring, split_pattern, etc.) are out of scope for a follow-up.

### Component(s)

C++

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.