MaxGekk commented on a change in pull request #31832:
URL: https://github.com/apache/spark/pull/31832#discussion_r594153511
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
##########
@@ -1521,6 +1521,40 @@ case class DateAddYMInterval(date: Expression, interval:
Expression) extends Add
override def sql: String = s"${left.sql} + ${right.sql}"
}
+// Adds the year-month interval to the timestamp
+case class TimestampAddYMInterval(
Review comment:
I plan to support `timestamp + day-time interval` separately in another
PR. The implementation itself is not complex, need to write more tests.
----------------------------------------------------------------
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]