-
Notifications
You must be signed in to change notification settings - Fork 901
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 segmented_gather(list_column, gather_list) #7003
Add segmented_gather(list_column, gather_list) #7003
Conversation
Codecov Report
@@ Coverage Diff @@
## branch-0.18 #7003 +/- ##
===============================================
+ Coverage 82.01% 82.10% +0.08%
===============================================
Files 96 97 +1
Lines 16340 16493 +153
===============================================
+ Hits 13402 13541 +139
- Misses 2938 2952 +14
Continue to review full report at Codecov.
|
Co-authored-by: Vukasin Milovanovic <vukasin.milovanovic.87@gmail.com>
auto child_gather_index_begin = child_gather_index->mutable_view().begin<size_type>(); | ||
auto child_gather_index_end = child_gather_index->mutable_view().end<size_type>(); | ||
|
||
thrust::upper_bound(rmm::exec_policy(stream), |
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.
This wouldn't work if the gather_map was sliced (which is probably unlikely, but you never know). Similar to below, you need to start at the index indicated by
gather_map.offsets().begin<size_type>() + gather_map.offset()
and subtract
(gather_map.offsets().begin<size_type>() + gather_map.offset())[0]
from each value
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.
Or alternately, throw an exception if someone passes a gather_map with a positive .offset()
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.
added sliced gather_map support.
rerun tests |
closes #6542