gotocoding-DB commented on code in PR #48773:
URL: https://github.com/apache/spark/pull/48773#discussion_r1831615829
##########
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:
Ideally I want to write here something like: "Interval is too big, it only
fits 2^31-1 days (if it's make_ym_interval) and 2^63-1 microseconds (if it's
make_dt_interval)".
But I don't see something similar to this in that file.
--
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]