miland-db commented on code in PR #49850: URL: https://github.com/apache/spark/pull/49850#discussion_r1946851985
########## sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/AnalysisErrorSuite.scala: ########## @@ -917,6 +917,22 @@ class AnalysisErrorSuite extends AnalysisTest with DataTypeErrorsBase { )) } + test("EXEC IMMEDIATE - SQL Script as sqlString parameter") { + withSQLConf(SQLConf.SQL_SCRIPTING_ENABLED.key -> "true") { + val execImmediatePlan = ExecuteImmediateQuery( + Seq.empty, + scala.util.Left("BEGIN SELECT 1; END"), + Seq.empty) + + assertAnalysisErrorCondition( + inputPlan = execImmediatePlan, Review Comment: I will add new test that is using public API. -- 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