-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-29859][SQL] ALTER DATABASE (SET LOCATION) should look up catalog like v2 commands #26562
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
…terNamespaceSetLocationExec to make ALTER DATABASE (SET LOCATION) look up catalog like v2 commands.
|
@cloud-fan @imback82 @dongjoon-hyun |
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveCatalogs.scala
Outdated
Show resolved
Hide resolved
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/ResolveCatalogs.scala
Outdated
Show resolved
Hide resolved
|
ok to test |
|
Test build #113963 has finished for PR 26562 at commit
|
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/v2Commands.scala
Outdated
Show resolved
Hide resolved
|
Sorry for too many commits which cause too many builds. Will avoid this going forward. |
...in/scala/org/apache/spark/sql/execution/datasources/v2/AlterNamespaceSetPropertiesExec.scala
Show resolved
Hide resolved
imback82
left a comment
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.
LGTM
|
Test build #113993 has finished for PR 26562 at commit
|
|
Test build #113984 has finished for PR 26562 at commit
|
|
Test build #113989 has finished for PR 26562 at commit
|
|
Test build #113988 has finished for PR 26562 at commit
|
|
Test build #113986 has finished for PR 26562 at commit
|
|
retest this please |
|
Test build #114000 has finished for PR 26562 at commit
|
|
thanks, merging to master! |
|
thank you all for review and suggestion. |
What changes were proposed in this pull request?
Add AlterNamespaceSetLocationStatement, AlterNamespaceSetLocation, AlterNamespaceSetLocationExec to make ALTER DATABASE (SET LOCATION) look up catalog like v2 commands.
And also refine the code of AlterNamespaceSetProperties, AlterNamespaceSetPropertiesExec, DescribeNamespace, DescribeNamespaceExec to use SupportsNamespaces instead of CatalogPlugin for catalog parameter.
Why are the changes needed?
It's important to make all the commands have the same catalog/namespace resolution behavior, to avoid confusing end-users.
Does this PR introduce any user-facing change?
Yes, add "ALTER NAMESPACE ... SET LOCATION" whose function is same as "ALTER DATABASE ... SET LOCATION" and "ALTER SCHEMA ... SET LOCATION".
How was this patch tested?
New unit tests