srielau commented on code in PR #43612:
URL: https://github.com/apache/spark/pull/43612#discussion_r1379272566


##########
common/utils/src/main/resources/error/error-classes.json:
##########
@@ -1866,6 +1866,29 @@
     },
     "sqlState" : "42K0E"
   },
+  "INVALID_LITERAL_VALUE_SQL_STRING_FOR_DESERIALIZATION" : {
+    "message" : [
+      "The given Literal value SQL string <sqlStr> (dataType: <dataType>) is 
invalid and can't be deserialized."
+    ],
+    "subClass" : {
+      "ANALYSIS_FAILURE" : {
+        "message" : [
+          "It cannot be analyzed successfully."
+        ]
+      },
+      "NOT_EXPECTED_LITERAL_TYPE" : {
+        "message" : [
+          "The deserialized expression <expr> is not an Literal with data type 
<dataType>."
+        ]
+      },
+      "PARSE_FAILURE" : {
+        "message" : [
+          "It cannot be parsed successfully."
+        ]
+      }
+    },
+    "sqlState" : "42894"

Review Comment:
   I this a user error? Shouldn't it be an internal error? I.e. we expect it to 
work.



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