You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 23, 2024. It is now read-only.
[SPARK-31234][SQL] ResetCommand should reset config to sc.conf only
### What changes were proposed in this pull request?
Currently, ResetCommand clear all configurations, including sql configs, static sql configs and spark context level configs.
for example:
```sql
spark-sql> set xyz=abc;
xyz abc
spark-sql> set;
spark.app.id local-1585055396930
spark.app.name SparkSQL::10.242.189.214
spark.driver.host 10.242.189.214
spark.driver.port 65094
spark.executor.id driver
spark.jars
spark.master local[*]
spark.sql.catalogImplementation hive
spark.sql.hive.version 1.2.1
spark.submit.deployMode client
xyz abc
spark-sql> reset;
spark-sql> set;
spark-sql> set spark.sql.hive.version;
spark.sql.hive.version 1.2.1
spark-sql> set spark.app.id;
spark.app.id <undefined>
```
In this PR, we restore spark confs to RuntimeConfig after it is cleared
### Why are the changes needed?
reset command overkills configs which are static.
### Does this PR introduce any user-facing change?
yes, the ResetCommand do not change static configs now
### How was this patch tested?
add ut
Closesapache#28003 from yaooqinn/SPARK-31234.
Authored-by: Kent Yao <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
(cherry picked from commit 44bd36a)
Signed-off-by: Wenchen Fan <[email protected]>
Copy file name to clipboardExpand all lines: docs/sql-ref-syntax-aux-conf-mgmt-reset.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ license: |
20
20
---
21
21
22
22
### Description
23
-
Reset all the properties specific to the current session to their default values. After RESET command, executing SET command will output empty.
23
+
Reset any runtime configurations specific to the current session which were set via the [SET](sql-ref-syntax-aux-conf-mgmt-set.html) command to their default values.
24
24
25
25
### Syntax
26
26
{% highlight sql %}
@@ -30,7 +30,7 @@ RESET
30
30
31
31
### Examples
32
32
{% highlight sql %}
33
-
-- Reset all the properties specific to the current session to their default values.
33
+
-- Reset any runtime configurations specific to the current session which were set via the SET command to their default values.
0 commit comments