-
Notifications
You must be signed in to change notification settings - Fork 847
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Panic on reencoding offsets in arrow-ipc with sliced nested arra…
…ys (#6998) * fix: Panic on reencoding offsets Code was incorrectly defining the end of the offset slice to be the start + slice_length * 2 because slice_with_length adds the start to the end. This caused the encoded batches to be larger than they needed to be and would result in a panic for certain slices. * Add tests for slicing larger arrays * Run rustfmt * Added end to end unit test which shows the problem is fixed. --------- Co-authored-by: Andrew Lamb <[email protected]>
- Loading branch information
1 parent
8508063
commit 0e40460
Showing
1 changed file
with
156 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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