-
Notifications
You must be signed in to change notification settings - Fork 29k
[WIP][SPARK-28476][SQL] Support ALTER DATABASE SET LOCATION #25294
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
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the parser test case.
Add both negative and positive end to end test cases?
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.
Add it to DDLSuite?
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.
I add a positive e2e test case.
What's the negative test case you want to add ?
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.
- 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.