MaxGekk commented on code in PR #36635:
URL: https://github.com/apache/spark/pull/36635#discussion_r879754357


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -23,7 +23,7 @@
     "message" : [ "Cannot up cast <value> from <sourceType> to 
<targetType>.\n<details>" ]
   },
   "CAST_INVALID_INPUT" : {
-    "message" : [ "The value <value> of the type <sourceType> cannot be cast 
to <targetType> because it is malformed. To return NULL instead, use 
`try_cast`. If necessary set <config> to \"false\" to bypass this error." ],
+    "message" : [ "The value <value> of the type <sourceType> cannot be cast 
to <targetType> because it is malformed. Correct the syntax for the value 
before casting it, or change the type to one appropriate for the value. To 
return NULL instead, use `try_cast`. If necessary set <config> to \"false\" to 
bypass this error." ],

Review Comment:
   > Do you mean "Correct the values as per the syntax"?
   
   Yep
   
   > nit: "change the type to one appropriate for the value" => "change an 
appropriate type for the value"?
   
   Maybe just, "change the target type"?
   
   How about:
   `Correct the value as per the syntax, or change its target type.`?



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