itholic commented on code in PR #48242:
URL: https://github.com/apache/spark/pull/48242#discussion_r1776148120


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -70,6 +70,12 @@
     ],
     "sqlState" : "42000"
   },
+  "ANSI_DATE_TIME_FIELD_OUT_OF_BOUNDS" : {
+    "message" : [
+      "ANSI mode error: <message>. If necessary set <ansiConfig> to false to 
bypass this error."

Review Comment:
   We are currently catching `java.time.DateTimeException` as `e` and including 
`e.getMessage` in the error message, but `java.time.DateTimeException` does not 
provide the ability to obtain each parameter separately.
   
   I just reverted back to the existing error message so can we just use the 
existing error message for now??



-- 
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]

Reply via email to