-
Notifications
You must be signed in to change notification settings - Fork 28.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[SPARK-49773][SQL] uncaught Java exception from make_timestamp() with bad timezone #48260
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3267,6 +3267,12 @@ | |
}, | ||
"sqlState" : "42000" | ||
}, | ||
"INVALID_ZONE_OFFSET": { | ||
"message": [ | ||
"<message>. ZoneOffset represents the time difference from UTC and must be in the range from -18:00 to +18:00." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's a bad practice to pass in the entire message. We can just say the zone offset is invalid, and we keep the original error as the causedBy of this error. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure why we need to preserve the caused by. Or is that merely for the stack trace? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yea, and also to retain the original error message from the JDK library. |
||
], | ||
"sqlState" : "22009" | ||
}, | ||
"JOIN_CONDITION_IS_NOT_BOOLEAN_TYPE" : { | ||
"message" : [ | ||
"The join condition <joinCondition> has the invalid type <conditionType>, expected \"BOOLEAN\"." | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shall we clearly say it's time zone?