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 2022/03/31 07:49:33 UTC

[GitHub] [spark] gengliangwang commented on a change in pull request #36022: [SPARK-38710][SQL] Use SparkArithmeticException for arithmetic overflow runtime errors

gengliangwang commented on a change in pull request #36022:
URL: https://github.com/apache/spark/pull/36022#discussion_r839286486



##########
File path: core/src/main/resources/error/error-classes.json
##########
@@ -25,6 +25,10 @@
     "message" : [ "Casting %s to %s causes overflow. To return NULL instead, use 'try_cast'. If necessary set %s to false to bypass this error." ],
     "sqlState" : "22005"
   },
+  "ARITHMETIC_OVERFLOW": {
+    "message": ["%s.%s If necessary set %s to false (except for ANSI interval type) to bypass this error.%s"],
+    "sqlState": "22003"

Review comment:
       
   
   
   SQLSTATE | Class | Condition | Subclass | Subcondition
   -- | -- | -- | -- | --
   22003 | 22 | data exception | 003 | numeric value out of range
   
   
   
   




-- 
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-unsubscribe@spark.apache.org

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