Skip to content

Commit

Permalink
Fixed build by adding more checks for int8, int16 (#9707)
Browse files Browse the repository at this point in the history
Add additional checks for int8, int16

fixes [#/rapidsai/cudf/4127](#4127)

Authors:
  - Raza Jafri (https://github.com/razajafri)

Approvers:
  - Robert (Bobby) Evans (https://github.com/revans2)
  - Nghia Truong (https://github.com/ttnghia)

URL: rapidsai/cudf#9707
  • Loading branch information
razajafri authored Nov 17, 2021
1 parent e08ae9c commit 4d13d81
Showing 1 changed file with 3 additions and 2 deletions.
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

0 comments on commit 4d13d81

Please sign in to comment.