cloud-fan commented on a change in pull request #32849:
URL: https://github.com/apache/spark/pull/32849#discussion_r648971845



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/intervalExpressions.scala
##########
@@ -405,8 +405,9 @@ case class MultiplyDTInterval(
   override def left: Expression = interval
   override def right: Expression = num
 
-  override def inputTypes: Seq[AbstractDataType] = Seq(DayTimeIntervalType, 
NumericType)
-  override def dataType: DataType = DayTimeIntervalType
+  // TODO(SPARK-XXXXX): Multiply day-time intervals with any fields
+  override def inputTypes: Seq[AbstractDataType] = Seq(DayTimeIntervalType(), 
NumericType)

Review comment:
       We should use `DayTimeIntervalType` to accept all kinds of day time 
intervals.




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