-
Notifications
You must be signed in to change notification settings - Fork 912
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
[REVIEW] Introduces make_optional_iterator
for nullable column and scalars
#7772
[REVIEW] Introduces make_optional_iterator
for nullable column and scalars
#7772
Conversation
a9ca157
to
997c64d
Compare
997c64d
to
0639524
Compare
8e2d1a0
to
67f527f
Compare
make_optional_iterator
for nullable column and scalarsmake_optional_iterator
for nullable column and scalars
67f527f
to
1523ac4
Compare
This is a first step in fixing issues brought up in rapidsai#6952 and rapidsai#7573. The iterator produces `thrust::optional<T>` to better represent nullable column elements or scalars. `make_optional_iterator` supports three different `contains_null` modes: - `YES` means that the column supports nulls and has null values, therefore the optional might not contain a value - `NO` means that the column has no null values, therefore the optional will always have a value - `DYNAMIC` defers the assumption of nullability to runtime with the users stating on construction of the iterator if column has nulls.
69163c3
to
ce6d864
Compare
I was curious what impact
So it looks like we shouldn't see a significant compilation cost by switching algorithms over to use optional iterators. |
Codecov Report
@@ Coverage Diff @@
## branch-0.20 #7772 +/- ##
===============================================
+ Coverage 82.30% 82.91% +0.61%
===============================================
Files 101 103 +2
Lines 17053 17658 +605
===============================================
+ Hits 14035 14642 +607
+ Misses 3018 3016 -2
Continue to review full report at Codecov.
|
@gpucibot merge |
Co-authored-by: David Wendt <[email protected]>
Co-authored-by: David Wendt <[email protected]>
Co-authored-by: David Wendt <[email protected]>
Co-authored-by: David Wendt <[email protected]>
Co-authored-by: David Wendt <[email protected]>
rerun tests |
@gpucibot merge |
Introduces
make_optional_iterator
for nullable column and scalars, as the first step in fixing issues brought up in #6952 and #7573.The iterator produces
thrust::optional<T>
to better represent nullable column elements and scalars.make_optional_iterator
supports three differentcontains_null
modes: