Skip to content

Bind read_parquet_metadata API to libcudf instead of pyarrow and extract RowGroup information - #15398

Merged
rapids-bot[bot] merged 16 commits into
NVIDIA:branch-24.06from
mhaseeb123:read-parquet-metadata
Apr 17, 2024
Merged

rapids-bot[bot] merged 16 commits into
NVIDIA:branch-24.06from
mhaseeb123:read-parquet-metadata

Conversation

@mhaseeb123

@mhaseeb123 mhaseeb123 commented Mar 27, 2024 •

Copy link
Copy Markdown
Contributor

Description

The cudf.io.read_parquet_metadata is now bound to corresponding libcudf API instead of relying on pyarrow. The libcudf API now also returns high level RowGroup metadata to solve #11214. Added additional tests and doc updates as well.

More metadata information such min, max values for each column in each row group can also be extracted and returned if needed. Thoughts?

Recommend: Closing #15320 without merging in favor of this PR.

Checklist

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

@mhaseeb123
mhaseeb123 requested review from a team as code owners March 27, 2024 00:16
@github-actions github-actions Bot added libcudf Affects libcudf (C++/CUDA) code. Python Affects Python cuDF API. labels Mar 27, 2024
@mhaseeb123 mhaseeb123 added 3 - Ready for Review Ready for review by team cuIO cuIO issue breaking Breaking change improvement Improvement / enhancement to an existing function labels Mar 27, 2024
@mhaseeb123 mhaseeb123 changed the title Bind read_parquet_metadata API to libcudf instead of pyarrow and also extract row_group information Bind read_parquet_metadata API to libcudf instead of pyarrow and extract row_group information Mar 27, 2024
@mhaseeb123 mhaseeb123 changed the title Bind read_parquet_metadata API to libcudf instead of pyarrow and extract row_group information Bind read_parquet_metadata API to libcudf instead of pyarrow and extract RowGroup information Mar 27, 2024
@mhaseeb123 mhaseeb123 added 2 - In Progress Currently a work in progress and removed 3 - Ready for Review Ready for review by team labels Apr 1, 2024

@galipremsagar galipremsagar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@mhaseeb123 mhaseeb123 added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Apr 2, 2024
@mhaseeb123

mhaseeb123 commented Apr 2, 2024 •

Copy link
Copy Markdown
Contributor Author

Thanks for working on this @mhaseeb123 ! Looks like there are some missing columns that is resulting in pytest failures; https://github.com/rapidsai/cudf/actions/runs/8461251922/job/23181884309?pr=15398#step:8:1758

Thanks for reviewing the code @galipremsagar. I was already on it and just pushed a fix. The test should pass now. 🙂

Comment thread python/cudf/cudf/utils/ioutils.py Resolved
@mhaseeb123 mhaseeb123 added breaking Breaking change and removed breaking Breaking change labels Apr 2, 2024
Comment thread python/cudf/cudf/_lib/parquet.pyx Resolved
@mhaseeb123
mhaseeb123 requested a review from galipremsagar April 9, 2024 01:34
@vuule
vuule self-requested a review April 16, 2024 16:58

@vuule vuule left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

few small questions/suggestions

Comment thread python/cudf/cudf/_lib/parquet.pyx Resolved
Comment thread python/cudf/cudf/_lib/parquet.pyx Resolved
Comment thread cpp/src/io/parquet/reader_impl.cpp Resolved
Comment thread python/cudf/cudf/_lib/parquet.pyx Resolved
Comment thread python/cudf/cudf/_lib/parquet.pyx Resolved
Comment thread python/cudf/cudf/io/parquet.py Resolved
Comment thread python/cudf/cudf/io/parquet.py Resolved
@mhaseeb123

Copy link
Copy Markdown
Contributor Author

/merge

@rapids-bot
rapids-bot Bot merged commit f222b4a into NVIDIA:branch-24.06 Apr 17, 2024
@mhaseeb123
mhaseeb123 deleted the read-parquet-metadata branch April 17, 2024 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3 - Ready for Review Ready for review by team breaking Breaking change cuIO cuIO issue improvement Improvement / enhancement to an existing function libcudf Affects libcudf (C++/CUDA) code. Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants