Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Encoding of List offsets was incorrect when slice offsets begin with zero #5

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

HawaiianSpork
Copy link

When encoding offsets the code had an optimization to reuse the offsets if the first offset was zero assuming the slice already pointed to first element. But the offset can also be zero if all previous lists were empty. When this occured it mold make all lists in the slice as empty, even if they shouldn't be.

…with zero

When encoding offsets the code had an optimization to reuse the offsets if the first offset was zero assuming the slice already pointed to first element.  But the offset can also be zero if all previous lists were empty.  When this occured it mold make all lists in the slice as empty, even if they shouldn't be.
@github-actions github-actions bot added the arrow label Nov 26, 2024
@HawaiianSpork
Copy link
Author

There are some fmts that don't pass from previous commits. I figure it was more important to keep the PR change small.

@HawaiianSpork HawaiianSpork merged commit b666044 into v52-fallback Nov 26, 2024
16 of 26 checks passed
@HawaiianSpork HawaiianSpork deleted the fix-list-offsets branch November 26, 2024 19:19
@HawaiianSpork
Copy link
Author

Relevant PR to upstream: apache#6805

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.

2 participants