Skip to content

Commit

Permalink
add missing code
Browse files Browse the repository at this point in the history
  • Loading branch information
chenhao-db committed Nov 9, 2023
1 parent d3c36ca commit b4debc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ public Object get(int ordinal, DataType dataType) {
return getStruct(ordinal, ((StructType)dataType).fields().length);
} else if (dataType instanceof MapType) {
return getMap(ordinal);
} else if (dataType instanceof VariantType) {
return getVariant(ordinal);
} else {
throw new UnsupportedOperationException("Datatype not supported " + dataType);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ public static void populate(ConstantColumnVector col, InternalRow row, int field
} else if (pdt instanceof PhysicalCalendarIntervalType) {
// The value of `numRows` is irrelevant.
col.setCalendarInterval((CalendarInterval) row.get(fieldIdx, t));
} else if (pdt instanceof PhysicalVariantType) {
col.setVariant((VariantVal)row.get(fieldIdx, t));
} else {
throw new RuntimeException(String.format("DataType %s is not supported" +
" in column vectorized reader.", t.sql()));
Expand Down

0 comments on commit b4debc6

Please sign in to comment.