cloud-fan commented on code in PR #48260: URL: https://github.com/apache/spark/pull/48260#discussion_r1777216178
########## common/utils/src/main/resources/error/error-conditions.json: ########## @@ -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." Review Comment: 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. -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org