mihailom-db commented on code in PR #48773:
URL: https://github.com/apache/spark/pull/48773#discussion_r1831625198
##########
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:
This change for subClass requires addition of new parameter to the error,
which is fine as well.
--
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]