MaxGekk commented on code in PR #49850:
URL: https://github.com/apache/spark/pull/49850#discussion_r1946828248


##########
common/utils/src/main/resources/error/error-conditions.json:
##########
@@ -4629,6 +4629,12 @@
     ],
     "sqlState" : "42K0I"
   },
+  "SQL_SCRIPT_IN_EXECUTE_IMMEDIATE" : {
+    "message" : [
+      "SQL Scripts in EXECUTE IMMEDIATE commands are not allowed. Please 
ensure that the SQL query provided (<sqlString>) is not SQL Script."

Review Comment:
   Let's imagine an user copied-pasted block of SQL code from somewhere to 
execute it immediate. How your error message can help to make his/her code 
work. How to figure out what's need to change to make it not SQL script. 



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to