Repository navigation
fix: account for offset when building RunArray from ArrayData - #11660
Merged
Merged
Conversation
Jefffrey
marked this pull request as draft
October 18, 2026 03:04
Jefffrey
marked this pull request as ready for review
October 18, 2026 03:20
This was referenced Oct 18, 2026
This was referenced Oct 19, 2026
alamb
approved these changes
Oct 19, 2026
| let runs = ArrayData::builder(DataType::Int32) | ||
| .len(2) | ||
| .offset(2) | ||
| .add_buffer(vec![-10_i32, -20, 1_i32, 4, 0, 100].into()) |
Contributor
There was a problem hiding this comment.
so this sets the runs to [1,4] I think, so the actual array is
1.5, 2.5, 2.5, 2.5, 2.5
alamb
added a commit
that referenced
this pull request
Oct 20, 2026
…ArrayData (#11739) - Backport #11660 - For inclusion in #11664 Cherry-pick of ee9f2a3 Note: the test uses literal `"run_ends"` / `"values"` field names because `Field::REE_*_FIELD_DEFAULT_NAME` constants are not on the 59 line. Co-authored-by: Jeffrey Vo <[email protected]>
alamb
pushed a commit
that referenced
this pull request
Oct 21, 2026
alamb
pushed a commit
that referenced
this pull request
Oct 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
None
Rationale for this change
Correctness issue when building run arrays from array data
What changes are included in this PR?
Apply arraydata offset to run ends child array when constructing runarray from data
Are these changes tested?
yes
Are there any significant user-facing changes?
no