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
[SPARK-37460][DOCS] Add the description of ALTER DATABASE SET LOCATION #34718
Conversation
Test build #145647 has finished for PR 34718 at commit
|
cc: @imback82 |
Kubernetes integration test starting |
Kubernetes integration test status failure |
cc @cloud-fan |
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.
+1
Test build #145786 has finished for PR 34718 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
`ALTER DATABASE SET LOCATION` statement changes the default parent-directory where new tables will be added | ||
for a database. Please note that it does not move the contents of the database's current directory to the newly | ||
specified location or change the locations associated with any tables/partitions under the specified database | ||
(available in Hive 3.0.0 and later). |
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 find out the Spark version instead?
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.
Thanks for the review. I mentioned the Hive version here because the usability of the ALTER DATABASE SET LOCATION
command depends on the version of the Hive metastore and it is not available on 2.3.9.
I will add the Spark version here (Spark 3.0.0 and later) but I think it's still good for users to write about Hive.
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.
fixed.
Test build #145811 has finished for PR 34718 at commit
|
Kubernetes integration test starting |
Kubernetes integration test status failure |
thanks, merging to master/3.2! |
### What changes were proposed in this pull request? Added the description of `ALTER DATABASE SET LOCATION` command in `sql-ref-syntax-ddl-alter-database.md` ### Why are the changes needed? This command can be used but not documented anywhere. ### Does this PR introduce _any_ user-facing change? Yes, docs changes. ### How was this patch tested? `SKIP_API=1 bundle exec jekyll build` <img width="395" alt="alterdb1" src="https://user-images.githubusercontent.com/87687356/143523751-4cc32ad1-390c-491b-a6ea-bf1664535c28.png"> <img width="396" alt="alterdb2" src="https://user-images.githubusercontent.com/87687356/143523757-aa741d74-0e51-4e17-8768-9da7eb86a7d8.png"> Closes #34718 from yutoacts/SPARK-37460. Authored-by: Yuto Akutsu <yuto.akutsu@oss.nttdata.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit 5924961) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
### What changes were proposed in this pull request? Added the description of `ALTER DATABASE SET LOCATION` command in `sql-ref-syntax-ddl-alter-database.md` ### Why are the changes needed? This command can be used but not documented anywhere. ### Does this PR introduce _any_ user-facing change? Yes, docs changes. ### How was this patch tested? `SKIP_API=1 bundle exec jekyll build` <img width="395" alt="alterdb1" src="https://user-images.githubusercontent.com/87687356/143523751-4cc32ad1-390c-491b-a6ea-bf1664535c28.png"> <img width="396" alt="alterdb2" src="https://user-images.githubusercontent.com/87687356/143523757-aa741d74-0e51-4e17-8768-9da7eb86a7d8.png"> Closes apache#34718 from yutoacts/SPARK-37460. Authored-by: Yuto Akutsu <yuto.akutsu@oss.nttdata.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit 5924961) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
### What changes were proposed in this pull request? Added the description of `ALTER DATABASE SET LOCATION` command in `sql-ref-syntax-ddl-alter-database.md` ### Why are the changes needed? This command can be used but not documented anywhere. ### Does this PR introduce _any_ user-facing change? Yes, docs changes. ### How was this patch tested? `SKIP_API=1 bundle exec jekyll build` <img width="395" alt="alterdb1" src="https://user-images.githubusercontent.com/87687356/143523751-4cc32ad1-390c-491b-a6ea-bf1664535c28.png"> <img width="396" alt="alterdb2" src="https://user-images.githubusercontent.com/87687356/143523757-aa741d74-0e51-4e17-8768-9da7eb86a7d8.png"> Closes apache#34718 from yutoacts/SPARK-37460. Authored-by: Yuto Akutsu <yuto.akutsu@oss.nttdata.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit 5924961) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
### What changes were proposed in this pull request? Added the description of `ALTER DATABASE SET LOCATION` command in `sql-ref-syntax-ddl-alter-database.md` ### Why are the changes needed? This command can be used but not documented anywhere. ### Does this PR introduce _any_ user-facing change? Yes, docs changes. ### How was this patch tested? `SKIP_API=1 bundle exec jekyll build` <img width="395" alt="alterdb1" src="https://user-images.githubusercontent.com/87687356/143523751-4cc32ad1-390c-491b-a6ea-bf1664535c28.png"> <img width="396" alt="alterdb2" src="https://user-images.githubusercontent.com/87687356/143523757-aa741d74-0e51-4e17-8768-9da7eb86a7d8.png"> Closes apache#34718 from yutoacts/SPARK-37460. Authored-by: Yuto Akutsu <yuto.akutsu@oss.nttdata.com> Signed-off-by: Wenchen Fan <wenchen@databricks.com> (cherry picked from commit 5924961) Signed-off-by: Wenchen Fan <wenchen@databricks.com>
What changes were proposed in this pull request?
Added the description of
ALTER DATABASE SET LOCATION
command insql-ref-syntax-ddl-alter-database.md
Why are the changes needed?
This command can be used but not documented anywhere.
Does this PR introduce any user-facing change?
Yes, docs changes.
How was this patch tested?
SKIP_API=1 bundle exec jekyll build