-
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] Add GDF_BOOL type #1142
Conversation
…ithmetic wrapper operator tests to cast to original type.
…are adequate and passing for these types.
@jrhemstad This is ready for review, but I can't request that you review it since you originally started the PR! |
I realized I didn't overload any comparison operators except ==, which can't be right... so that means the tests are also insufficient. Still a bit to do here. |
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.
Some questions about cudf::bool8 operators, I'm not sure we need them or not.
Others looks good to me.
@harrism since it's my own PR, I can't "Approve" formally, so I'll say that all the changes look good. |
@kovaltan is on vacation and his suggestion is resolved.
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 even though latest changes are mine, since Jake verbally approved and he can't officially approve since it's his PR.
@jrhemstad : 👍 |
Supersedes #817
GDF_BOOL8
gdf_dtype andgdf_bool8
storage type.cudf::bool8
wrapper (cannot redefinebool
in a namespace,8
indicates an 8-bit representation)type_dispatcher
gdf_dtype_of
wrapper
testswrapper
operators forbool8
convertStrToValue
https://github.com/rapidsai/cudf/blob/branch-0.6/cpp/src/io/csv/type_conversion.cuh#L256std::numeric_limits
forcudf::bool8
operator++
/operator--
).This PR does NOT address testing / supporting of GDF_BOOL8 in the following modules. Testing of these should be added in another PR: atomics, binary and unary operations, order_by, group_by, join, hashing, replace, quantiles, CSV, Parquet, and any other file loaders. Issue #1518 filed to cover this.
I (@harrism) tried to add cudf::bool8 as a tested type to orderby, but ran into failures because the reference solution assumes integer arithmetic/comparison semantics rather than Boolean semantics. Therefore I decided that testing support for BOOL8 everywhere is too large a task for this PR.
Closes #667