LuciferYang commented on code in PR #38754:
URL: https://github.com/apache/spark/pull/38754#discussion_r1033071448


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -780,8 +780,21 @@
   },
   "INVALID_SCHEMA" : {
     "message" : [
-      "The expression <expr> is not a valid schema string."
-    ]
+      "The input schema <inputSchema> is not a valid schema string."
+    ],
+    "subClass" : {
+      "PARSE_ERROR" : {
+        "message" : [
+          "Cannot parse the schema: ",
+          "<reason>"
+        ]
+      },
+      "UNEXPECTED_INPUT_TYPE" : {

Review Comment:
   
[af157d2](https://github.com/apache/spark/pull/38754/commits/af157d2bf34489ebbd116f6077eb13c5287971cc)
 rename ` INVALID_SCHEMA.UNEXPECTED_INPUT_TYPE` to 
`INVALID_SCHEMA.NON_STRING_LITERAL`



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