gengliangwang commented on code in PR #36241:
URL: https://github.com/apache/spark/pull/36241#discussion_r852520368


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -101,14 +101,14 @@
     "message" : [ "Field name %s is invalid: %s is not a struct." ],
     "sqlState" : "42000"
   },
+  "INVALID_FORMAT_FOR_CAST" : {
+    "message" : [ "Invalid input value for type %s: %s. To return NULL 
instead, use 'try_cast'. If necessary set %s to false to bypass this error.%s" 
],

Review Comment:
   Shall we keep the previous wording
   ```
   Invalid input syntax for type ...
   ```
   It is from PostgreSQL 



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