MaxGekk commented on code in PR #39305:
URL: https://github.com/apache/spark/pull/39305#discussion_r1060068593
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -1062,6 +1062,11 @@
"Failed to set original permission <permission> back to the created
path: <path>. Exception: <message>"
]
},
+ "ROOT_CONVERTER_RETURNS_NULL" : {
Review Comment:
This error class is pretty specific to JSON parser. Let's add the `JSON`
word to the name. For example, `INVALID_JSON_ROOT_FIELD`
##########
core/src/main/resources/error/error-classes.json:
##########
@@ -1062,6 +1062,11 @@
"Failed to set original permission <permission> back to the created
path: <path>. Exception: <message>"
]
},
+ "ROOT_CONVERTER_RETURNS_NULL" : {
+ "message" : [
+ "Root converter returns null"
Review Comment:
```suggestion
"Cannot convert JSON root field to target Spark 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]