Skip to content

[SPARK-44982][CONNECT] Mark Spark Connect server configurations as static#42695

Closed
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:SPARK-44982
Closed

[SPARK-44982][CONNECT] Mark Spark Connect server configurations as static#42695
HyukjinKwon wants to merge 1 commit intoapache:masterfrom
HyukjinKwon:SPARK-44982

Conversation

@HyukjinKwon
Copy link
Member

What changes were proposed in this pull request?

This PR proposes to mark all Spark Connect server configurations as static configurations.

Why are the changes needed?

They are already static configurations, and cannot be set in runtime configuration (by default), see also

if (sqlConf.setCommandRejectsSparkCoreConfs &&
ConfigEntry.findEntry(key) != null && !SQLConf.containsConfigKey(key)) {
throw QueryCompilationErrors.cannotModifyValueOfSparkConfigError(key, SPARK_DOC_ROOT)
}

Does this PR introduce any user-facing change?

No, they are already static configurations.

How was this patch tested?

Existing unittests.

Was this patch authored or co-authored using generative AI tooling?

No.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM.

@HyukjinKwon
Copy link
Member Author

Merged to master and branch-3.5.

I am merging this to 3.5 too as #42694 would need this, and I believe the risk is low.

HyukjinKwon added a commit that referenced this pull request Aug 28, 2023
…atic

This PR proposes to mark all Spark Connect server configurations as static configurations.

They are already static configurations, and cannot be set in runtime configuration (by default), see also https://github.com/apache/spark/blob/4a4856207d414ba88a8edabeb70e20765460ef1a/sql/core/src/main/scala/org/apache/spark/sql/RuntimeConfig.scala#L164-L167

No, they are already static configurations.

Existing unittests.

No.

Closes #42695 from HyukjinKwon/SPARK-44982.

Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
(cherry picked from commit 5b69dfd)
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
@dongjoon-hyun
Copy link
Member

+1 for backporting.

@HyukjinKwon HyukjinKwon deleted the SPARK-44982 branch January 15, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants