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 write_json failure for zero columns in table/struct #17414

Merged

Conversation

karthikeyann
Copy link
Contributor

Description

Closes #17413

num_rows are passed to ensure empty{} is created for zero columns.

Checklist

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

@karthikeyann karthikeyann added bug Something isn't working 3 - Ready for Review Ready for review by team libcudf Affects libcudf (C++/CUDA) code. cuIO cuIO issue non-breaking Non-breaking change labels Nov 22, 2024
@karthikeyann karthikeyann self-assigned this Nov 22, 2024
@karthikeyann karthikeyann requested review from a team as code owners November 22, 2024 06:37
@github-actions github-actions bot added the Python Affects Python cuDF API. label Nov 22, 2024
Copy link
Contributor

@bdice bdice left a comment

Choose a reason for hiding this comment

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

One expression could be simplified, otherwise LGTM.

cpp/src/io/json/write_json.cu Outdated Show resolved Hide resolved
scatter_fn);
} else {
thrust::for_each(
rmm::exec_policy(stream),
Copy link
Contributor

Choose a reason for hiding this comment

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

can we do nosync here? (maybe in the other branch as well)

Suggested change
rmm::exec_policy(stream),
rmm::exec_policy_nosync(stream),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I noticed this early. The entire file could use nosync update. Created PR #17445

cpp/src/io/json/write_json.cu Outdated Show resolved Hide resolved
@karthikeyann
Copy link
Contributor Author

/merge

@rapids-bot rapids-bot bot merged commit 83f0ae0 into rapidsai:branch-25.02 Nov 27, 2024
109 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
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] write_json fails for struct with zero columns
3 participants