Skip to content

Parquet reader: Fix issue when using skip_rows on non-nested columns containing nulls - #7627

Merged
rapids-bot[bot] merged 3 commits into
NVIDIA:branch-0.19from
nvdbaranec:parquet_nulls_bug
Mar 23, 2021
Merged

rapids-bot[bot] merged 3 commits into
NVIDIA:branch-0.19from
nvdbaranec:parquet_nulls_bug

Conversation

@nvdbaranec

Copy link
Copy Markdown
Contributor

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_pos to src_pos in page_state_s. The semantics of the variable are: "the position in the source data to read for the current output position", which made out_pos a super obscure name.

@nvdbaranec nvdbaranec added bug Something isn't working 3 - Ready for Review Ready for review by team 4 - Needs cuIO Reviewer non-breaking Non-breaking change labels Mar 17, 2021
@nvdbaranec
nvdbaranec requested review from a team as code owners March 17, 2021 18:05
@github-actions github-actions Bot added Python Affects Python cuDF API. libcudf Affects libcudf (C++/CUDA) code. labels Mar 17, 2021
@codecov

codecov Bot commented Mar 17, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #7627 (3faa84a) into branch-0.19 (7871e7a) will increase coverage by 0.61%.
The diff coverage is n/a.

❗ Current head 3faa84a differs from pull request most recent head 778adbc. Consider uploading reports for the commit 778adbc to get more accurate results
Impacted file tree graph

@@               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     
Impacted Files Coverage Δ
python/cudf/cudf/core/column/categorical.py 91.97% <ø> (+0.58%) ⬆️
python/cudf/cudf/core/column/column.py 87.86% <ø> (+0.10%) ⬆️
python/cudf/cudf/core/column/datetime.py 89.63% <ø> (+0.54%) ⬆️
python/cudf/cudf/core/column/decimal.py 92.75% <ø> (-2.12%) ⬇️
python/cudf/cudf/core/column/lists.py 92.50% <ø> (+1.10%) ⬆️
python/cudf/cudf/core/column/numerical.py 94.83% <ø> (-0.20%) ⬇️
python/cudf/cudf/core/column/string.py 86.79% <ø> (+0.30%) ⬆️
python/cudf/cudf/core/column/timedelta.py 88.57% <ø> (+0.33%) ⬆️
python/cudf/cudf/core/column_accessor.py 95.45% <ø> (+0.14%) ⬆️
python/cudf/cudf/core/dataframe.py 90.90% <ø> (+0.44%) ⬆️
... and 64 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d500142...778adbc. Read the comment docs.

Comment thread cpp/src/io/parquet/page_data.cu Resolved
Comment thread cpp/tests/io/parquet_test.cpp Resolved
@vuule vuule added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for Review Ready for review by team 4 - Needs cuIO Reviewer labels Mar 23, 2021
@nvdbaranec

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit acaac42 into NVIDIA:branch-0.19 Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to Merge Testing and reviews complete, ready to merge bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] read_parquet reads incorrect values when requested to read a portion of a file

5 participants