Skip to content

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

Description

@fangchenli

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++

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions