-
Notifications
You must be signed in to change notification settings - Fork 907
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
Support create lists column from a list_scalar
#8185
Support create lists column from a list_scalar
#8185
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-21.06 #8185 +/- ##
===============================================
Coverage ? 82.84%
===============================================
Files ? 105
Lines ? 17863
Branches ? 0
===============================================
Hits ? 14798
Misses ? 3065
Partials ? 0 Continue to review full report at Codecov.
|
…ist_column_from_scalar
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.
I think stream and MR need to be used explicitly. Detail APIs should call detail APIs.
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.
You can check in the beginning whether the size == 1 and make a mr that's either the default or the one passed in the arguments. Then you can use the same mr thoughout and avoid duplicating code.
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.
Approving ops-codeowner
file changes
list_scalar
list_scalar
list_scalar
list_scalar
This PR ready to merge? |
Yup, I think it's good to go. |
@gpucibot merge |
This small PR is to replace the JNI implementation with the corresponding cudf API `make_column_from_scalar`. The PR #8185 has added the support for nested type, so it is ok to do this now. Signed-off-by: Firestarman <[email protected]> Authors: - Liangcai Li (https://github.com/firestarman) Approvers: - Bobby Wang (https://github.com/wbo4958) - Robert (Bobby) Evans (https://github.com/revans2) - Jason Lowe (https://github.com/jlowe) URL: #8310
This PR adds support to
make_column_from_scalar
forlist_scalar
. For 0-length columns, a well-formedLIST
type column, whose child column has the same column hierarchy to the row data stored inlist_scalar
is returned.Example:
Closes #8088