AngersZhuuuu commented on a change in pull request #34517:
URL: https://github.com/apache/spark/pull/34517#discussion_r744562861
##########
File path:
sql/core/src/main/java/org/apache/spark/sql/execution/vectorized/ColumnVectorUtils.java
##########
@@ -92,9 +92,10 @@ public static void populate(WritableColumnVector col,
InternalRow row, int field
CalendarInterval c = (CalendarInterval)row.get(fieldIdx, t);
col.getChild(0).putInts(0, capacity, c.months);
col.getChild(1).putLongs(0, capacity, c.microseconds);
- } else if (t instanceof DateType) {
+ } else if (t instanceof DateType || t instanceof YearMonthIntervalType) {
col.putInts(0, capacity, row.getInt(fieldIdx));
- } else if (t instanceof TimestampType || t instanceof TimestampNTZType) {
+ } else if (t instanceof TimestampType || t instanceof TimestampNTZType ||
+ t instanceof DayTimeIntervalType) {
col.putLongs(0, capacity, row.getLong(fieldIdx));
Review comment:
LGTM
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]