Skip to content

[REVIEW] Drop support for skiprows and num_rows in cudf.read_parquet - #11480

Merged
rapids-bot[bot] merged 2 commits into
NVIDIA:branch-22.10from
galipremsagar:drop_skip_rows
Aug 5, 2022
Merged

rapids-bot[bot] merged 2 commits into
NVIDIA:branch-22.10from
galipremsagar:drop_skip_rows

Conversation

@galipremsagar

Copy link
Copy Markdown
Contributor

Description

This PR removes support for skiprows & num_rows in parquet reader. A continuation of #11218

Checklist

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

@galipremsagar galipremsagar added 3 - Ready for Review Ready for review by team Python Affects Python cuDF API. 4 - Needs cuDF (Python) Reviewer labels Aug 5, 2022
@galipremsagar
galipremsagar requested a review from a team as a code owner August 5, 2022 16:20
@galipremsagar galipremsagar self-assigned this Aug 5, 2022
@galipremsagar galipremsagar added improvement Improvement / enhancement to an existing function breaking Breaking change labels Aug 5, 2022
@galipremsagar

Copy link
Copy Markdown
Contributor Author

cc: @nvdbaranec @vuule

@galipremsagar galipremsagar added the cuIO cuIO issue label Aug 5, 2022
@codecov

codecov Bot commented Aug 5, 2022 •

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.10@acadcf2). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             branch-22.10   #11480   +/-   ##
===============================================
  Coverage                ?   86.47%           
===============================================
  Files                   ?      144           
  Lines                   ?    22852           
  Branches                ?        0           
===============================================
  Hits                    ?    19761           
  Misses                  ?     3091           
  Partials                ?        0           

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

@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.

One small change request

cdef bool cpp_strings_to_categorical = strings_to_categorical
cdef bool cpp_use_pandas_metadata = use_pandas_metadata
cdef size_type cpp_skiprows = skiprows if skiprows is not None else 0
cdef size_type cpp_num_rows = num_rows if num_rows is not None else -1

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.

eww, we still used -1 as "null" here :(

Comment thread python/cudf/cudf/tests/test_parquet.py Resolved

@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.

💯

@galipremsagar galipremsagar 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 Aug 5, 2022
@galipremsagar

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit 2e13e5f into NVIDIA:branch-22.10 Aug 5, 2022
rapids-bot Bot pushed a commit that referenced this pull request Aug 10, 2022
…#11505)

In a previous PR #11480, `skiprows` & `num_rows` were removed from `cudf.read_parquet`, this PR updates the corresponding parquet reader fuzz tests.

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: #11505
nvdbaranec added a commit to nvdbaranec/cudf that referenced this pull request Sep 6, 2022
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 breaking Breaking change cuIO cuIO issue improvement Improvement / enhancement to an existing function Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants