MaxGekk commented on a change in pull request #32340:
URL: https://github.com/apache/spark/pull/32340#discussion_r620115461



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/util/ArrowUtils.scala
##########
@@ -54,6 +54,8 @@ private[sql] object ArrowUtils {
         new ArrowType.Timestamp(TimeUnit.MICROSECOND, timeZoneId)
       }
     case NullType => ArrowType.Null.INSTANCE
+    case YearMonthIntervalType => Types.MinorType.INTERVALYEAR.getType
+    case DayTimeIntervalType => Types.MinorType.INTERVALDAY.getType

Review comment:
       Maybe the following code for consistency with the cases above:
   ```suggestion
       case YearMonthIntervalType => new 
ArrowType.Interval(IntervalUnit.YEAR_MONTH)
       case DayTimeIntervalType => new ArrowType.Interval(IntervalUnit.DAY_TIME)
   ```




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to