-
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
Fix make_column_from_scalar for all-null strings column #11807
Fix make_column_from_scalar for all-null strings column #11807
Conversation
Codecov ReportBase: 87.40% // Head: 87.52% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## branch-22.12 #11807 +/- ##
================================================
+ Coverage 87.40% 87.52% +0.11%
================================================
Files 133 133
Lines 21833 21807 -26
================================================
+ Hits 19084 19086 +2
+ Misses 2749 2721 -28
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a test exercising this fix?
Yes. There are existing tests. Here are two of them: cudf/cpp/tests/column/factories_test.cpp Lines 417 to 437 in 5a4afec
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
@gpucibot merge |
Description
Fixes the
cudf::make_column_from_scalar
for an invalidcudf::string_scalar
to return a column with children. Some libcudf APIs will not work with a strings column with no children. This condition would be rare enough that additional logic for checking no children in these places would be a performance and maintenance issue.This also greatly simplifies the
make_column_from_scalar
specialization logic for strings.Closes #11756
Checklist