diff --git a/docs/sql-ref-scripting.md b/docs/sql-ref-scripting.md index a8bccb471d56..e9407cff2301 100644 --- a/docs/sql-ref-scripting.md +++ b/docs/sql-ref-scripting.md @@ -32,10 +32,6 @@ This is followed by the compound statement body, which consists of: - The [EXECUTE IMMEDIATE](sql-ref-syntax-aux-exec-imm.html) statement. - Nested compound statements, which provide nested scopes for variables, conditions, and condition handlers. -## Enablement - -To enable SQL Scripting, set the `spark.sql.scripting.enabled` flag to `true`. - ## Passing data between the invoker and the compound statement There are two ways to pass data to and from a SQL script: diff --git a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala index 18cd916cb5d2..4b82966b2b6d 100644 --- a/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala +++ b/sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala @@ -4336,7 +4336,7 @@ object SQLConf { "flow and error handling.") .version("4.0.0") .booleanConf - .createWithDefault(false) + .createWithDefault(true) val SQL_SCRIPTING_CONTINUE_HANDLER_ENABLED = buildConf("spark.sql.scripting.continueHandlerEnabled")