MaxGekk commented on code in PR #37313:
URL: https://github.com/apache/spark/pull/37313#discussion_r931114821


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -210,6 +210,12 @@
       "<message>"
     ]
   },
+  "INTERVAL_DIVIDED_BY_ZERO" : {
+    "message" : [
+      "Division by zero."

Review Comment:
   Doesn't `try_divide` help here? The `TryDivide` expression has some examples 
with intervals:
   
https://github.com/apache/spark/blob/46175d1362062035fb93f87f25d61a9b711359ab/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/TryEval.scala#L187-L190



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to