Skip to content

fix(arrow-array): Fix RunArray validation for zero-null validity buffers - #12484

Merged
Jefffrey merged 1 commit into
apache:mainfrom
Surajsuthar:fix/#12427-run-array-null-buffer
Dec 1, 2026
Merged

Jefffrey merged 1 commit into
apache:mainfrom
Surajsuthar:fix/#12427-run-array-null-buffer

Conversation

@Surajsuthar

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Rationale for this change

RunArray::try_new rejected run-end arrays whenever a null buffer was present, even when the buffer contained no null values. This can occur with arrays created through slicing, concatenation, or NullBuffer::new_valid.

What changes are included in this PR?

  • Validate null_count() instead of null-buffer presence in RunArray and ArrayData.
  • Add a regression test covering a run-end array with a validity buffer containing zero nulls.

Are these changes tested?

Are there any significant user-facing changes?

AI usage disclosure

@boring-cyborg boring-cyborg Bot added the arrow-core Core crates related to representing arrow data label Nov 27, 2026
@Jefffrey Jefffrey added the bug Squash those bugs label Nov 28, 2026
@Jefffrey
Jefffrey added this pull request to the merge queue Dec 1, 2026
@Jefffrey

Jefffrey commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

thanks @Surajsuthar

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Dec 1, 2026
@Jefffrey
Jefffrey added this pull request to the merge queue Dec 1, 2026
Merged via the queue into apache:main with commit 0f1fd35 Dec 1, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arrow-core Core crates related to representing arrow data bug Squash those bugs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RunArray::try_new rejects run ends whose null buffer has no nulls

2 participants