-
Notifications
You must be signed in to change notification settings - Fork 13
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
Out of spec, message: combined patch width and value width cannot exceed the size of the integer type being decoded #97
Comments
progval
added a commit
to progval/datafusion-orc
that referenced
this issue
Aug 6, 2024
For some reason, some files written with pyorc have a `patch_bit_width` larger than needing, causing the previous check to fail, even when decoding to `u64`. This changes the check to only fail when the patch bits actually overflow, instead of checking whether they may overflow. Closes datafusion-contrib#97
progval
added a commit
to progval/datafusion-orc
that referenced
this issue
Aug 6, 2024
For some reason, some files written with pyorc have a `patch_bit_width` larger than needing, causing the previous check to fail, even when decoding to `u64`. This changes the check to only fail when the patch bits actually overflow, instead of checking whether they may overflow. Closes datafusion-contrib#97
progval
added a commit
to progval/datafusion-orc
that referenced
this issue
Aug 6, 2024
For some reason, some files written with pyorc have a `patch_bit_width` larger than needing, causing the previous check to fail, even when decoding to `u64`. This changes the check to only fail when the patch bits actually overflow, instead of checking whether they may overflow. Closes datafusion-contrib#97
waynexia
pushed a commit
to waynexia/orc-rs
that referenced
this issue
Oct 24, 2024
For some reason, some files written with pyorc have a `patch_bit_width` larger than needing, causing the previous check to fail, even when decoding to `u64`. This changes the check to only fail when the patch bits actually overflow, instead of checking whether they may overflow. Closes datafusion-contrib/datafusion-orc#97
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this check:
datafusion-orc/src/reader/decode/rle_v2/patched_base.rs
Lines 55 to 60 in 16b5704
can be falsified while reading files created with
pyorc
. To reproduce:(sorry, it's 4GB. I don't have a smaller example on hand)
then checkout 28e911b (a commit from #96 because it's the only way not to hit an overflow crash before this bug), apply this patch:
then run this code with
./revision-0c45576a-59f7-48d1-a9a8-2e5c64098905.orc
as parameter:which prints:
The text was updated successfully, but these errors were encountered: