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

Avoid use of flatbuffers::size_prefixed_root #7109

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bkietz
Copy link
Member

@bkietz bkietz commented Feb 10, 2025

Which issue does this PR close?

Closes #7058

Rationale for this change

flatbuffers::size_prefixed_root does not seem to do what was originally expected. Replacing it with more explicit code for handling an encapsulated message prefix seems to resolve the case of interest.

What changes are included in this PR?

Usage of size_prefixed_root ( there was only one call, introduced in #2586 ) is replaced with manual prefixed length wrangling. A unit test is added

Are there any user-facing changes?

No

Maybe the error messages?

@github-actions github-actions bot added the arrow Changes to the arrow crate label Feb 10, 2025
@bkietz bkietz marked this pull request as ready for review February 12, 2025 17:07
@bkietz bkietz force-pushed the 7058-avoid-use-of-size_prefixed_root branch 2 times, most recently from d689e17 to c225a02 Compare February 12, 2025 17:19
@bkietz bkietz force-pushed the 7058-avoid-use-of-size_prefixed_root branch from c225a02 to f9e091b Compare February 13, 2025 19:39
@bkietz bkietz requested a review from tustvold February 24, 2025 17:34
@XiangpengHao
Copy link
Contributor

XiangpengHao commented Mar 3, 2025

The change looks good to me, I've tested in in https://github.com/XiangpengHao/liquid-cache, and it indeed fixes the problem it tries to fix. cc @alamb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arrow Changes to the arrow crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect IPC schema encoding for multiple dictionaries
2 participants