Skip to content

Conversation

@HyukjinKwon
Copy link
Member

Rationale for this change

Removed a TODO from replace_with_mask implementation that asking why the replacements null count wasn't sufficient for a slice operation. When slicing an array, the null count from the original full array doesn't apply to the slice.

The null count must be marked as kUnknownNullCount and computed lazily when needed.

What changes are included in this PR?

Replaced the TODO with some comments clarifying:

  • Why manual slicing is used (avoids extra allocation from ArrayData::Slice())
  • Why kUnknownNullCount is necessary (original null count doesn't apply to slice)

Are these changes tested?

No, I did not test.

Are there any user-facing changes?

No.

@HyukjinKwon HyukjinKwon changed the title MINOR: [C++] Remove outdated TODO about generic ChunkedArray validation MINOR: [C++] Remove TODO asking why null count set unknown Jan 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.

1 participant