mihailom-db commented on code in PR #48773:
URL: https://github.com/apache/spark/pull/48773#discussion_r1831624820
##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -2020,11 +2020,23 @@
],
"sqlState" : "XX000"
},
- "INTERVAL_ARITHMETIC_OVERFLOW" : {
- "message" : [
- "<message>.<alternative>"
+ "INTERVAL_ARITHMETIC_OVERFLOW": {
+ "message": [
+ "Integer overflow while creating interval."
],
- "sqlState" : "22015"
+ "subClass": {
+ "NUMERIC": {
+ "message": [
+ "<message>.<alternative>."
+ ]
+ },
+ "DATETIME": {
+ "message": [
+ "Too big interval for datetime, check how you create it."
Review Comment:
You can say something like: Number of days <actualNumDays> exceeds the
allowed limit of integer value. Is it only while creating intervals that this
can happen, I got the idea that it can happen with arithmetic operations as
well. So I would say integer overflow while operating with 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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]