You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/03/23 09:16:26 UTC

[GitHub] [spark] yaooqinn commented on a change in pull request #31929: [SPARK-34824][SQL] Support multiply an year-month interval by a numeric

yaooqinn commented on a change in pull request #31929:
URL: https://github.com/apache/spark/pull/31929#discussion_r599392263



##########
File path: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/intervalExpressions.scala
##########
@@ -249,3 +249,49 @@ case class MakeInterval(
 
   override def prettyName: String = "make_interval"
 }
+
+// Multiply an year-month interval by a numeric
+case class MultiplyYMInterval(
+    interval: Expression,
+    num: Expression)
+  extends BinaryExpression with ImplicitCastInputTypes with NullIntolerant with Serializable {

Review comment:
       Strings are also accepted then?




-- 
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:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org