-
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 offset_end iterator for lists_column_view, which was not correctl… #7551
Fix offset_end iterator for lists_column_view, which was not correctl… #7551
Conversation
Co-authored-by: Jake Hemstad <[email protected]>
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7551 +/- ##
===============================================
+ Coverage 81.90% 82.35% +0.44%
===============================================
Files 101 101
Lines 16900 17283 +383
===============================================
+ Hits 13842 14233 +391
+ Misses 3058 3050 -8
Continue to review full report at Codecov.
|
@gpucibot merge. |
We require two cpp approvals before merging. |
cc @trxcllnt |
Hah, github tells me "1 approving review" 😄 |
@gpucibot merge. |
Why is this a breaking change? Isn't this a bug fix without API/ABI change? |
Sorry, it's breaking in my other PR. Maybe I miss understood the Hah, without the "breaking" label, CI check fails. |
Got it. |
@gpucibot merge!!!!!!!!! Apparently the bot never listens to me. |
Why is this a |
It should not be any breaking change here. But if I remove the |
Here we go. Adding |
There's a label checker that checks that either the |
@gpucibot merge |
Thanks very much, Keith. |
This is another fix for `offsets_end()` iterator in lists_column_view. The last fix (#7551) was still not correct---that iterator should not be computed using the size of the `offsets()` child column, which is also the offsets of the original (non-sliced) column. Instead, it should be computed using the `size()` of the current column. Interestingly, my previous fix passed all the unit tests, since thrust does not throw anything (like access violation) when the input range is larger than the output range. Authors: - Nghia Truong (@ttnghia) Approvers: - Jake Hemstad (@jrhemstad) - David (@davidwendt) URL: #7575
rapidsai#7551) Fix the `offset_end` iterator in `lists_column_view`. Since the offset column size is one element larger than the number of column rows, the `offset_end` should be computed as `offset_begin() + size() + 1`. This can also be done by `offset_begin() + offsets().size()`. This PR blocks rapidsai#7528, thus it must be merged before that PR. Authors: - Nghia Truong (@ttnghia) Approvers: - Jake Hemstad (@jrhemstad) - Mike Wilson (@hyperbolic2346) - Vukasin Milovanovic (@vuule) URL: rapidsai#7551
…#7575) This is another fix for `offsets_end()` iterator in lists_column_view. The last fix (rapidsai#7551) was still not correct---that iterator should not be computed using the size of the `offsets()` child column, which is also the offsets of the original (non-sliced) column. Instead, it should be computed using the `size()` of the current column. Interestingly, my previous fix passed all the unit tests, since thrust does not throw anything (like access violation) when the input range is larger than the output range. Authors: - Nghia Truong (@ttnghia) Approvers: - Jake Hemstad (@jrhemstad) - David (@davidwendt) URL: rapidsai#7575
Fix the
offset_end
iterator inlists_column_view
. Since the offset column size is one element larger than the number of column rows, theoffset_end
should be computed asoffset_begin() + size() + 1
. This can also be done byoffset_begin() + offsets().size()
.This PR blocks #7528, thus it must be merged before that PR.