Skip to content
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

[Java] Fixed build by adding more checks for int8, int16 #9707

Merged
merged 2 commits into from
Nov 17, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions java/src/main/java/ai/rapids/cudf/ColumnView.java
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,13 @@ public final ColumnVector isInteger() {
* for null entries.
*
* @param intType the data type that should be used for bounds checking. Note that only
* integer types are allowed.
* cudf integer types are allowed including signed/unsigned int8 through int64
* @return Boolean vector
*/
public final ColumnVector isInteger(DType intType) {
assert type.equals(DType.STRING);
assert intType.isBackedByInt() || intType.isBackedByLong();
assert intType.isBackedByInt() || intType.isBackedByLong() || intType.isBackedByByte()
|| intType.isBackedByShort();
return new ColumnVector(isIntegerWithType(getNativeView(),
intType.getTypeId().getNativeId(), intType.getScale()));
}
Expand Down