forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Parquet V2 page reading when max def/rep levels are 0 (facebookin…
…cubator#9939) Summary: The existing code did not skip the definition and repetition level arrays if the `maxDefine_` and `maxRepeat_` are both zero but these arrays were actually more than 0 bytes. This commit fixes this problem and always uses `pageHeader.data_page_header_v2.definition_levels_byte_length` and `pageHeader.data_page_header_v2.repetition_levels_byte_length` as the array lengths because these values are guaranteed to exist. Fixes facebookincubator#9924 Pull Request resolved: facebookincubator#9939 Reviewed By: pedroerp Differential Revision: D57975496 Pulled By: Yuhta fbshipit-source-id: d9a8dde1973942a3b9cc5212db24e38c2ff3983d
- Loading branch information
1 parent
05c2925
commit 0b4f3e2
Showing
3 changed files
with
30 additions
and
6 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
Binary file not shown.
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