Skip to content

Commit c273315

Browse files
committed
add IllegalStateException
1 parent 0cb8e20 commit c273315

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spark/src/main/java/org/apache/comet/vector/CometPlainVector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public UTF8String getUTF8String(int rowId) {
149149
return UTF8String.fromString(convertToUuid(result).toString());
150150
}
151151
} else {
152-
throw new RuntimeException("Unsupported UTF8 vector type: " + valueVector.getName());
152+
throw new IllegalStateException("Unsupported UTF8 vector type: " + valueVector.getName());
153153
}
154154
}
155155

@@ -166,7 +166,7 @@ public byte[] getBinary(int rowId) {
166166
length = fixedWidthVector.getTypeWidth();
167167
offset = rowId * length;
168168
} else {
169-
throw new RuntimeException("Unsupported binary vector type: " + valueVector.getName());
169+
throw new IllegalStateException("Unsupported binary vector type: " + valueVector.getName());
170170
}
171171
byte[] result = new byte[length];
172172
Platform.copyMemory(

0 commit comments

Comments
 (0)