8000 Handle empty dictionary in to_arrow_device interop by davidwendt · Pull Request #18121 · rapidsai/cudf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Handle empty dictionary in to_arrow_device interop #18121

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

Merged
merged 14 commits into from
Mar 11, 2025

Conversation

davidwendt
Copy link
Contributor
@davidwendt davidwendt commented Feb 27, 2025

Description

Attempt at fixing issue described here #18071 (comment)

Closes #18071

Checklist

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

@davidwendt 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 Feb 27, 2025
@davidwendt davidwendt self-assigned this Feb 27, 2025
Copy link
copy-pr-bot bot commented Feb 27, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@davidwendt
Copy link
Contributor Author

/ok to test

@davidwendt davidwendt added 3 - Ready for Review Ready for review by team and removed 2 - In Progress Currently a work in progress labels Mar 5, 2025
@davidwendt davidwendt marked this pull request as ready for review March 5, 2025 15:03
@davidwendt davidwendt requested a review from a team as a code owner March 5, 2025 15:03
@davidwendt davidwendt requested a review from a team as a code owner March 5, 2025 20:04
Copy link
Contributor
@mythrocks mythrocks left a comment

Choose a reason for hiding this comment

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

I'm 👍 on this, barring a question regarding the lifetime of a column-view, after a column is released.

@vyasr vyasr removed the request for review from a team March 6, 2025 23:59
@vyasr
Copy link
Contributor
vyasr commented Mar 7, 2025

Do we also need to fix https://github.com/rapidsai/cudf/blob/branch-25.04/cpp/src/interop/to_arrow_host.cu#L245?

@vyasr vyasr requested a review from mythrocks March 8, 2025 01:47
column));

auto const dcv = cudf::dictionary_column_view(column);
auto const dict_indices = dcv.is_empty() ? cudf::make_empty_column(cudf::type_id::INT32)->view()
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose, empty column view pointers are all nullptr.

@davidwendt
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 5566e8d into rapidsai:branch-25.04 Mar 11, 2025
107 of 117 checks passed
@davidwendt davidwendt deleted the dict-empty-segfault branch May 14, 2025 15:21
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] to_arrow_device making improper use of an empty column
4 participants
0