Skip to content
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-29834][SQL] DESC DATABASE should look up catalog like v2 commands #26513

Closed
wants to merge 8 commits into from

Conversation

fuwhu
Copy link
Contributor

@fuwhu fuwhu commented Nov 14, 2019

What changes were proposed in this pull request?

Add DescribeNamespaceStatement, DescribeNamespace and DescribeNamespaceExec
to make "DESC DATABASE" look up catalog like v2 commands.

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 "DESC NAMESPACE" whose function is same as "DESC DATABASE" and "DESC SCHEMA".

How was this patch tested?

New unit test

…ceExec

to make "DESC DATABASE" look up catalog like v2 commands.
@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 14, 2019

@cloud-fan @wangyum

@wangyum
Copy link
Member

wangyum commented Nov 14, 2019

ok to test

@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 14, 2019

@cloud-fan

@SparkQA
Copy link

SparkQA commented Nov 14, 2019

Test build #113762 has finished for PR 26513 at commit 827cac1.

  • 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 14, 2019

Test build #113756 has finished for PR 26513 at commit 4589c9f.

  • 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 14, 2019

Test build #113777 has finished for PR 26513 at commit 827cac1.

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

@dongjoon-hyun dongjoon-hyun changed the title [SPARK-29834][SQL]DESC DATABASE should look up catalog like v2 commands [SPARK-29834][SQL] DESC DATABASE should look up catalog like v2 commands Nov 14, 2019
@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 15, 2019

@dongjoon-hyun @imback82

@SparkQA
Copy link

SparkQA commented Nov 15, 2019

Test build #113850 has finished for PR 26513 at commit bc5094a.

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

@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 15, 2019

retest this please

@dongjoon-hyun
Copy link
Member

Retest this please.

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 (few minor comments)

@SparkQA
Copy link

SparkQA commented Nov 15, 2019

Test build #113885 has finished for PR 26513 at commit bc5094a.

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

@SparkQA
Copy link

SparkQA commented Nov 16, 2019

Test build #113896 has finished for PR 26513 at commit 6eca944.

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

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM. Thank you all.
Merged to master.

@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 16, 2019

thank you all for review and help.

@fuwhu fuwhu deleted the SPARK-29834 branch November 16, 2019 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants