MaxGekk commented on code in PR #36811:
URL: https://github.com/apache/spark/pull/36811#discussion_r895359514
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Cast.scala:
##########
@@ -108,8 +108,9 @@ object Cast {
case (TimestampType, TimestampNTZType) => true
case (StringType, _: CalendarIntervalType) => true
- case (StringType, _: DayTimeIntervalType) => true
- case (StringType, _: YearMonthIntervalType) => true
+ case (StringType, _: AnsiIntervalType) => true
+
+ case (_: AnsiIntervalType, _: IntegralType) => true
Review Comment:
The SQL standard allows this. I think it makes sense to support this too.
--
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]