-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21054] [SQL] Reset Command support reset specific property. #18268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f050f39
f2bf940
4e76a31
579adf9
cbb424f
99436d6
ecc2650
d8e7106
e4cb39c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -305,5 +305,6 @@ class SparkSqlParserSuite extends PlanTest { | |
| test("reset") { | ||
| assertEqual("reset", ResetCommand(None)) | ||
| assertEqual("reset spark.test.property", ResetCommand(Some("spark.test.property"))) | ||
| assertEqual("reset #$a!", ResetCommand(Some("#$a!"))) | ||
|
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,7 +115,7 @@ class SQLConfSuite extends QueryTest with SharedSQLContext { | |
| } | ||
|
|
||
| Seq("reset", s"reset ${SQLConf.GROUP_BY_ORDINAL.key}").foreach { resetCmd => | ||
| test("reset - public conf") { | ||
| test(s"reset - public conf $resetCmd") { | ||
|
||
| spark.sessionState.conf.clear() | ||
| val original = spark.conf.get(SQLConf.GROUP_BY_ORDINAL) | ||
| try { | ||
|
|
@@ -133,7 +133,7 @@ class SQLConfSuite extends QueryTest with SharedSQLContext { | |
| } | ||
|
||
|
|
||
| Seq("reset", s"reset ${SQLConf.OPTIMIZER_MAX_ITERATIONS.key}").foreach { resetCmd => | ||
| test("reset - internal conf") { | ||
| test(s"reset - internal conf $resetCmd") { | ||
| spark.sessionState.conf.clear() | ||
| val original = spark.conf.get(SQLConf.OPTIMIZER_MAX_ITERATIONS) | ||
| try { | ||
|
|
@@ -151,7 +151,7 @@ class SQLConfSuite extends QueryTest with SharedSQLContext { | |
| } | ||
|
|
||
| Seq("reset", s"reset $testKey").foreach { resetCmd => | ||
| test("reset - user-defined conf") { | ||
| test(s"reset - user-defined conf $resetCmd") { | ||
| spark.sessionState.conf.clear() | ||
| try { | ||
| assert(spark.conf.getOption(testKey).isEmpty) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a test for
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, now added one plus sql-parse test for reset special character.