AngersZhuuuu commented on a change in pull request #32985:
URL: https://github.com/apache/spark/pull/32985#discussion_r656721719



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala
##########
@@ -175,6 +175,8 @@ object Cast {
 
     case (from: UserDefinedType[_], to: UserDefinedType[_]) if 
to.acceptsType(from) => true
 
+    case (_: YearMonthIntervalType, _: YearMonthIntervalType) => true

Review comment:
       > Could you open a separate PR for this, and write test only casts. It 
seems we need the same for the `DayTimeIntervalType`. Please, do that in the 
same PR.
   
   Done in https://github.com/apache/spark/pull/33035




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