Repository navigation
Parquet reader: Fix issue when using skip_rows on non-nested columns containing nulls - #7627
Merged
rapids-bot[bot] merged 3 commits intoMar 23, 2021
Merged
Conversation
nvdbaranec
requested review from
devavret,
jrhemstad,
shwina,
trxcllnt and
vuule
March 17, 2021 18:05
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7627 +/- ##
===============================================
+ Coverage 81.86% 82.47% +0.61%
===============================================
Files 101 101
Lines 16884 17402 +518
===============================================
+ Hits 13822 14353 +531
+ Misses 3062 3049 -13
Continue to review full report at Codecov.
|
vuule
reviewed
Mar 22, 2021
devavret
approved these changes
Mar 23, 2021
shwina
approved these changes
Mar 23, 2021
vuule
approved these changes
Mar 23, 2021
Contributor
Author
|
@gpucibot merge |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #7113
The basics of the fix are: when reading non-nested columns, always start reading values at the beginning of the data stream and discarding ones that fall before skip_rows. Previously we were attempting to jump directly to the first value to decode using a bad assumption. This was possible with nested types because of the preprocess step we run, but not with flat/simple hierarchies.
Also contains some cleanup and const-ification of things. In particular, I renamed the variable
out_postosrc_posinpage_state_s. The semantics of the variable are: "the position in the source data to read for the current output position", which madeout_posa super obscure name.