-
Notifications
You must be signed in to change notification settings - Fork 915
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 single offset to an empty ListArray in cudf::to_arrow #16201
Merged
rapids-bot
merged 1 commit into
rapidsai:branch-24.08
from
davidwendt:empty-list-to-arrow
Jul 8, 2024
Merged
Add single offset to an empty ListArray in cudf::to_arrow #16201
rapids-bot
merged 1 commit into
rapidsai:branch-24.08
from
davidwendt:empty-list-to-arrow
Jul 8, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
davidwendt
added
bug
Something isn't working
2 - In Progress
Currently a work in progress
libcudf
Affects libcudf (C++/CUDA) code.
non-breaking
Non-breaking change
labels
Jul 5, 2024
I think so, yes |
davidwendt
added
3 - Ready for Review
Ready for review by team
and removed
2 - In Progress
Currently a work in progress
labels
Jul 5, 2024
davidwendt
changed the title
Add zero offset to ListArray in cudf::to_arrow
Add single offset to an empty ListArray in cudf::to_arrow
Jul 5, 2024
bdice
approved these changes
Jul 5, 2024
ttnghia
approved these changes
Jul 6, 2024
JayjeetAtGithub
approved these changes
Jul 6, 2024
/merge |
3 tasks
rapids-bot bot
pushed a commit
that referenced
this pull request
Jul 16, 2024
An empty list column need not have empty children, it just needs to have zero length. In this case, the offsets array will have zero length, and we need to create a temporary buffer. Now that this branch runs, fix two errors in the construction of the arrow array: 1. The element type, if there are children, should be taken from the child array; 2. If the child arrays are empty, we must make an empty null array, rather than passing a null pointer as the values array, otherwise we hit a segfault inside arrow. The previous fix in #16201 correctly handled the empty children case (except for point two), but not the first case, which we do here. Since we we're previously going down this code path (child_arrays was never empty), we never hit the latent segfault from point two. Authors: - Lawrence Mitchell (https://github.com/wence-) Approvers: - David Wendt (https://github.com/davidwendt) - MithunR (https://github.com/mythrocks) URL: #16279
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
libcudf
Affects libcudf (C++/CUDA) code.
non-breaking
Non-breaking change
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Closes #16164
Checklist