yaooqinn commented on a change in pull request #28165: [SPARK-31392][SQL]
Support CalendarInterval to be reflect to CalendarntervalType
URL: https://github.com/apache/spark/pull/28165#discussion_r406128862
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/ScalaReflection.scala
##########
@@ -700,6 +700,8 @@ object ScalaReflection extends ScalaReflection {
Schema(TimestampType, nullable = true)
case t if isSubtype(t, localTypeOf[java.time.LocalDate]) =>
Schema(DateType, nullable = true)
case t if isSubtype(t, localTypeOf[java.sql.Date]) => Schema(DateType,
nullable = true)
+ case t if isSubtype(t, localTypeOf[CalendarInterval]) =>
+ Schema(CalendarIntervalType, nullable = true)
Review comment:
Oh, I separate this to the 3rd PR question, I will duplicate it in the first
one.
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]