cloud-fan commented on a change in pull request #27672: [SPARK-30919][SQL] Make 
interval multiply and divide's overflow behavior consistent with other 
operations
URL: https://github.com/apache/spark/pull/27672#discussion_r383330000
 
 

 ##########
 File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/Analyzer.scala
 ##########
 @@ -308,12 +308,12 @@ class Analyzer(
           case _ => s
         }
         case m @ Multiply(l, r) if m.childrenResolved => (l.dataType, 
r.dataType) match {
-          case (CalendarIntervalType, _) => MultiplyInterval(l, r)
-          case (_, CalendarIntervalType) => MultiplyInterval(r, l)
+          case (CalendarIntervalType, _) => MultiplyInterval(l, r, 
conf.ansiEnabled)
 
 Review comment:
   `SQLConf.get` is reliable now. Let's follow other PRs and use the default 
parameter value.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to