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 row group alignment in ORC writer #15789

Merged

Conversation

vuule
Copy link
Contributor

@vuule vuule commented May 20, 2024

Description

Closes #15775

ORC writer encodes null mask bits in multiples of eight to avoid issues with other readers reading partial encoded bytes. When this does not align with row groups, the null mask encode boundaries are moved to align to multiples of eight. There was a bug in the alignment code that caused a pointless shift by 8 bits and, then, issues in encode. This PR fixes the unnecessary shift.

Checklist

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

@vuule vuule added bug Something isn't working cuIO cuIO issue non-breaking Non-breaking change labels May 20, 2024
@github-actions github-actions bot added the libcudf Affects libcudf (C++/CUDA) code. label May 20, 2024
@github-actions github-actions bot added the Python Affects Python cuDF API. label May 21, 2024
@vuule vuule marked this pull request as ready for review May 21, 2024 18:17
@vuule vuule requested review from a team as code owners May 21, 2024 18:17
@vuule vuule self-assigned this May 21, 2024
@vuule vuule added the 3 - Ready for Review Ready for review by team label May 21, 2024
Copy link
Contributor

@vyasr vyasr left a comment

Choose a reason for hiding this comment

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

Can you update the PR description so it properly closes the associated issue? Otherwise LGTM.

@vuule
Copy link
Contributor Author

vuule commented May 22, 2024

/merge

@rapids-bot rapids-bot bot merged commit 9a0612b into rapidsai:branch-24.06 May 22, 2024
70 checks passed
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 bug Something isn't working cuIO cuIO issue 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] File written by ORC writer cannot be read in Pandas and Spark
4 participants