Skip to content

GH-43010: [C++][Compute] Support view arrays in selection kernels#50164

Open
Periecle wants to merge 1 commit into
apache:mainfrom
Periecle:fix-view-selection-kernels
Open

GH-43010: [C++][Compute] Support view arrays in selection kernels#50164
Periecle wants to merge 1 commit into
apache:mainfrom
Periecle:fix-view-selection-kernels

Conversation

@Periecle

@Periecle Periecle commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Rationale for this change

binary_view and string_view arrays were not fully supported by selection kernels. This also blocked dictionary decoding for dictionaries with view-type values.

What changes are included in this PR?

  • Add take/filter support for BINARY_VIEW and STRING_VIEW.
  • Preserve variadic payload buffers when taking view arrays.
  • Allow dictionary decode/cast from dictionaries with view-type values.
  • Add coverage for take, filter, drop null, scatter, and dictionary decode paths.

Are these changes tested?

Yes.

  • pre-commit run cpp --files <changed files>
  • cmake --build cpp/build --target arrow-compute-vector-selection-test
  • Focused compute tests for cast, selection, drop null, and scatter view-array paths

Are there any user-facing changes?

Yes. binary_view and string_view arrays are now supported by the affected selection and dictionary decode paths.

Partially addresses GH-39634
Closes GH-43010

@Periecle Periecle requested a review from pitrou as a code owner June 12, 2026 12:37
@github-actions

Copy link
Copy Markdown

Thanks for opening a pull request!

If this is not a minor PR. Could you open an issue for this pull request on GitHub? https://github.com/apache/arrow/issues/new/choose

Opening GitHub issues ahead of time contributes to the Openness of the Apache Arrow project.

Then could you also rename the pull request title in the following format?

GH-${GITHUB_ISSUE_ID}: [${COMPONENT}] ${SUMMARY}

or

MINOR: [${COMPONENT}] ${SUMMARY}

See also:

@Periecle Periecle force-pushed the fix-view-selection-kernels branch from fce680d to 0b590c7 Compare June 12, 2026 13:30
@Periecle Periecle changed the title [C++][Compute] Support view arrays in selection kernels GH-43010: [C++][Compute] Support view arrays in selection kernels Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C++] Support STRING_VIEW and BINARY_VIEW in "array_take" and "array_filter" functions

1 participant