miland-db commented on code in PR #49850: URL: https://github.com/apache/spark/pull/49850#discussion_r1946801306
########## 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: Multiple statements already don't work in EXECUTE IMMEDIATE. The idea is explicitly forbid SQL Scripts. Is there any value in adding additional explanation here or not? [Spark docs](https://spark.apache.org/docs/4.0.0-preview2/sql-ref-syntax-aux-exec-imm.html) are specifying that `sql_string` has to be a _well-formed SQL statement_. -- 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