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


##########
core/src/main/resources/error/error-classes.json:
##########
@@ -795,6 +795,11 @@
       }
     }
   },
+  "INVALID_SQL_ARG" : {
+    "message" : [
+      "The argument <name> of `sql()` is invalid. Consider to replace it by a 
SQL literal statement."

Review Comment:
   Can we more explicit about why it is invalid?
   "The argument <name> of `sql()` is not a literal." What is a "SQL Literal 
statement"?



##########
core/src/main/resources/error/error-classes.json:
##########
@@ -1130,6 +1135,11 @@
       "Unable to convert SQL type <toType> to Protobuf type <protobufType>."
     ]
   },
+  "UNBOUND_SQL_PARAMETER" : {
+    "message" : [
+      "Found the unbound parameter: <name>. Please, fix `args` and provide a 
mapping of the parameter to a SQL literal statement."

Review Comment:
   Won't this same error be used fro all other APIs (JDBC, SQL (when we 
support). So we may not want to refer to `args`.



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