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

Fix unnecessarily strict check in parquet chunked reader for choosing split locations. #16099

Merged

Conversation

nvdbaranec
Copy link
Contributor

This is a fix that somehow didn't make it into the initial wave of bug fixes for the parquet chunked reader earlier this year.

The code that determines where to do splits needs to be sure it always chooses a location such that the pages that are selected always enclose at least one full row for a list column. This means that you need to see at least 1 full row (2 row boundaries) in the group of pages. The weaklogic was only checking if you had 1 full row within the very last page in the selection, which is unnecessarily strict. We actually ran into some data out in the wild where this was hit.

This PR changes the logic to include all pages within the chunk when doing the check instead of just the last one.

Checklist

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

@nvdbaranec nvdbaranec added bug Something isn't working libcudf Affects libcudf (C++/CUDA) code. cuIO cuIO issue non-breaking Non-breaking change labels Jun 26, 2024
@nvdbaranec nvdbaranec requested a review from a team as a code owner June 26, 2024 16:35
@nvdbaranec nvdbaranec requested review from mhaseeb123 and vuule June 26, 2024 16:35
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.

not as EZ as advertised

@nvdbaranec
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 5d49fe6 into rapidsai:branch-24.08 Jun 27, 2024
74 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cuIO cuIO issue libcudf Affects libcudf (C++/CUDA) code. non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants