MaxGekk commented on code in PR #36897:
URL: https://github.com/apache/spark/pull/36897#discussion_r901076211
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -174,6 +174,17 @@
"message" : [ "Unsupported data type <typeName>" ],
"sqlState" : "0A000"
},
+ "UNSUPPORTED_DESERIALIZER" : {
+ "message" : [ "The deserializer is not supported: " ],
+ "subClass" : {
+ "DATA_TYPE_MISMATCH" : {
+ "message" : [ "need a(n) <desiredType> field but got <dataType>." ]
Review Comment:
It would be better to have the same errors here and the next versions
(master). I would prefer the approach in the current PR, and hard-code `a(n)`
in the error message instead of passing it as a parameter.
--
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]