-
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
Make inclusive scan safe for cases with leading nulls #7432
Conversation
Co-authored-by: Vukasin Milovanovic <[email protected]>
Co-authored-by: Vukasin Milovanovic <[email protected]>
@vuule I fixed |
CUDF_EXPECTS(begin_bit >= 0, "Invalid range."); | ||
CUDF_EXPECTS(begin_bit < end_bit, "Invalid bit range."); | ||
CUDF_EXPECTS(begin_bit <= end_bit, "Invalid bit range."); |
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 feel like these checks should be either merged or we should have more detailed error messages so that the separate checks are useful.
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.
Looks like these assertions have a similar issue:
cudf/cpp/src/bitmask/null_mask.cu
Lines 387 to 388 in f30be67
CUDF_EXPECTS(begin_bit >= 0, "Invalid range."); | |
CUDF_EXPECTS(begin_bit <= end_bit, "Invalid bit range."); |
cudf/cpp/src/bitmask/null_mask.cu
Lines 478 to 479 in f30be67
CUDF_EXPECTS(start >= 0, "Invalid range."); | |
CUDF_EXPECTS(start <= stop, "Invalid bit range."); |
I didn't bother to see if there are more, but I feel improving such checks deserves a separate PR.
Codecov Report
@@ Coverage Diff @@
## branch-0.19 #7432 +/- ##
===============================================
+ Coverage 81.80% 82.26% +0.46%
===============================================
Files 101 101
Lines 16695 17072 +377
===============================================
+ Hits 13658 14045 +387
+ Misses 3037 3027 -10
Continue to review full report at Codecov.
|
@gpucibot merge |
This PR includes a test that passes a column with leading nulls to
scan
, which is currently failing, and a fix for the failure.