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

add V2 page header support to parquet reader #11778

Merged
merged 24 commits into from
Oct 21, 2022

Conversation

etseidl
Copy link
Contributor

@etseidl etseidl commented Sep 26, 2022

Description

Adds support for reading parquet files with V2 page headers. Fixes #11686

Submitting as draft for now because I'm not sure how to do unit tests for this. libcudf cannot produce files with V2 headers, so I would need to either add files to a data directory somewhere, or add raw binary of some parquet files to parquet_test.cpp. Given the comment on the DecimalRead test, neither seems attractive. Suggestions are welcome. Perhaps use python to test?

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label Sep 26, 2022
@vuule vuule added non-breaking Non-breaking change bug Something isn't working labels Sep 28, 2022
@github-actions github-actions bot added the Python Affects Python cuDF API. label Sep 28, 2022
@codecov
Copy link

codecov bot commented Sep 30, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.12@b8ab576). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@               Coverage Diff               @@
##             branch-22.12   #11778   +/-   ##
===============================================
  Coverage                ?   88.14%           
===============================================
  Files                   ?      133           
  Lines                   ?    21982           
  Branches                ?        0           
===============================================
  Hits                    ?    19376           
  Misses                  ?     2606           
  Partials                ?        0           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@etseidl etseidl marked this pull request as ready for review September 30, 2022 15:29
@etseidl etseidl requested review from a team as code owners September 30, 2022 15:29
@vuule vuule requested review from hyperbolic2346 and vuule October 4, 2022 00:48
@harrism harrism removed their request for review October 4, 2022 02:03
@etseidl
Copy link
Contributor Author

etseidl commented Oct 6, 2022

rerun tests

1 similar comment
@vuule
Copy link
Contributor

vuule commented Oct 7, 2022

rerun tests

Copy link
Contributor

@vuule vuule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall, just worried about the synchronization.

cpp/src/io/parquet/reader_impl.cu Outdated Show resolved Hide resolved
cpp/src/io/parquet/reader_impl.cu Show resolved Hide resolved
Copy link
Contributor

@vuule vuule left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

Copy link
Contributor

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python changes LGTM. Minor nit that could be addressed

@vuule vuule added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 4 - Needs cuDF (Python) Reviewer labels Oct 20, 2022
@vuule
Copy link
Contributor

vuule commented Oct 21, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit f1ab5e9 into rapidsai:branch-22.12 Oct 21, 2022
@etseidl etseidl deleted the feature/parquetv2 branch October 21, 2022 20:51
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] Reading parquet file written by polars gives wrong result
4 participants