[WIP][SPARK-28476][SQL] Support ALTER DATABASE SET LOCATION#25294
[WIP][SPARK-28476][SQL] Support ALTER DATABASE SET LOCATION#25294WeichenXu123 wants to merge 13 commits intoapache:masterfrom
Conversation
|
Test build #108360 has finished for PR 25294 at commit
|
361d70f to
71033f8
Compare
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
Outdated
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
Outdated
Show resolved
Hide resolved
sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala
Outdated
Show resolved
Hide resolved
|
|
||
| test("alter database set location") { | ||
| // ALTER (DATABASE|SCHEMA) database_name SET LOCATION | ||
| val sql1 = "ALTER DATABASE database_name SET LOCATION '/home/user/db'" |
There was a problem hiding this comment.
This is the parser test case.
Add both negative and positive end to end test cases?
There was a problem hiding this comment.
I add a positive e2e test case.
What's the negative test case you want to add ?
There was a problem hiding this comment.
- A database that does not exist before issuing this command?
- Setting an illegal path that could trigger an exception inside the function
stringToURI
sql/core/src/main/scala/org/apache/spark/sql/execution/SparkSqlParser.scala
Outdated
Show resolved
Hide resolved
|
cc @rednaxelafx |
|
Test build #108400 has finished for PR 25294 at commit
|
|
Test build #108408 has finished for PR 25294 at commit
|
|
Test build #108431 has finished for PR 25294 at commit
|
|
Test build #108456 has finished for PR 25294 at commit
|
|
Test build #108473 has finished for PR 25294 at commit
|
|
Test build #108498 has finished for PR 25294 at commit
|
|
Test build #108563 has finished for PR 25294 at commit
|
|
Test build #108564 has finished for PR 25294 at commit
|
sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveClientImpl.scala
Outdated
Show resolved
Hide resolved
|
Test build #108572 has finished for PR 25294 at commit
|
|
Test build #108575 has finished for PR 25294 at commit
|
|
Jenkins, retest this please. |
|
Jenkins, retest this please. |
|
Test build #108596 has finished for PR 25294 at commit
|
|
Test build #108599 has finished for PR 25294 at commit
|
|
Test build #108597 has finished for PR 25294 at commit
|
|
@gatorsmile Any idea to address the hive metadata api "set db location" not working issue ? |
|
retest this please |
|
Test build #111110 has finished for PR 25294 at commit
|
What changes were proposed in this pull request?
Support the syntax of ALTER (DATABASE|SCHEMA) database_name SET LOCATION path
Ref: https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL
How was this patch tested?
UT.
Please review https://spark.apache.org/contributing.html before opening a pull request.