[SPARK-54261][SQL][FOLLOW UP] Re-enable spark.sql.scripting.enabled by default in 4.1 branch
#53154
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR aims to re-enable SQL Scripting in Spark 4.1, ahead of its RC.
Why are the changes needed?
There was a previous misunderstanding/miscommunication, that I did not notice in time. The feature was disabled because it was thought that it is not ready, due to unclosed JIRA items.
However, it was just a case of not 100% up-to-date items. I have cleaned up and classified remaining work items (children of SPARK-48338) into 4 categories:
M0 and M1 are done, meaning the feature is stable, useful and also ready to be used.
M2 will improve some of the aspects of using it by introducing a newer and more user-friendly statements, like SIGNAL/RESIGNAL and GET DIAGNOSTICS, as well as do some very minor optimizations. However, without those, feature is still ready to be used as is.
The only missing aspect is documentation, for which we have a PR (#50592) but it was closed. I'll work on re-submitting that one.
Does this PR introduce any user-facing change?
I am not sure 100% how this classifies - the feature was already present in 4.0, but was not enabled by default.
Anyways, the feature is completely orthogonal to all other standalone statement execution paths, so it is just adding to functionality of Spark.
There is no difference in behavior for any standalone SQL statement compared to when SQL Scripting is turned off.
How was this patch tested?
SQL Scripting has a thorough support in tests.
CI ensures the feature does not affect any other.
Was this patch authored or co-authored using generative AI tooling?
No.