Skip to content

Conversation

@fuwhu
Copy link
Contributor

@fuwhu fuwhu commented Nov 17, 2019

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

…terNamespaceSetLocationExec

to make ALTER DATABASE (SET LOCATION) look up catalog like v2 commands.
@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 17, 2019

@cloud-fan @imback82 @dongjoon-hyun
Please help review, thanks.

@dongjoon-hyun
Copy link
Member

ok to test

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-29859][SQL]ALTER DATABASE (SET LOCATION) should look up catalog like v2 commands [SPARK-29859][SQL] ALTER DATABASE (SET LOCATION) should look up catalog like v2 commands Nov 17, 2019
@SparkQA
Copy link

SparkQA commented Nov 17, 2019

Test build #113963 has finished for PR 26562 at commit b51bad8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 18, 2019

Sorry for too many commits which cause too many builds. Will avoid this going forward.

Copy link
Contributor

@imback82 imback82 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SparkQA
Copy link

SparkQA commented Nov 18, 2019

Test build #113993 has finished for PR 26562 at commit 1ee8e0f.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 18, 2019

Test build #113984 has finished for PR 26562 at commit d68df08.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 18, 2019

Test build #113989 has finished for PR 26562 at commit 6ae99f6.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 18, 2019

Test build #113988 has finished for PR 26562 at commit b2b26d7.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 18, 2019

Test build #113986 has finished for PR 26562 at commit 762940c.

  • This patch fails due to an unknown error code, -9.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

retest this please

@SparkQA
Copy link

SparkQA commented Nov 18, 2019

Test build #114000 has finished for PR 26562 at commit 1ee8e0f.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@cloud-fan
Copy link
Contributor

thanks, merging to master!

@cloud-fan cloud-fan closed this in c32e228 Nov 18, 2019
@fuwhu fuwhu deleted the SPARK-29859 branch November 18, 2019 12:59
@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 18, 2019

thank you all for review and suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants