Skip to content

[SPARK-23357][CORE] 'SHOW TABLE EXTENDED LIKE pattern=STRING' add ‘Partitioned’ display similar to hive, and partition is empty, also need to show empty partition field [] - #20543

Closed
guoxiaolongzte wants to merge 1 commit into
apache:masterfrom
guoxiaolongzte:SPARK-23357

Conversation

@guoxiaolongzte

@guoxiaolongzteguoxiaolongzte commented Feb 8, 2018

Copy link
Copy Markdown

What changes were proposed in this pull request?

Use 'SHOW TABLE EXTENDED LIKE pattern=STRING' command in spark-sql client,add ‘Partitioned’ display similar to hive, and if the partition is empty, also need to show empty partition field []

hive:
3

sparkSQL Non-partitioned table fix before:
1

sparkSQL partitioned table fix before:
2

sparkSQL Non-partitioned table fix after:
4

sparkSQL partitioned table fix after:
5

How was this patch tested?

manual tests

Please review http://spark.apache.org/contributing.html before opening a pull request.

…rtitioned’ display similar to hive, and partition is empty, also need to show empty partition field []
@guoxiaolongzte

Copy link
Copy Markdown
Author

@gatorsmile
Help to review the code.

@jiangxb1987

Copy link
Copy Markdown
Contributor

Personally I don't think it add any value to tell whether a table is partitioned, but I don't feel strong on this.

@guoxiaolongzte

Copy link
Copy Markdown
Author

Oh, I just think it adds to make it clearer.

@AmplabJenkins

Copy link
Copy Markdown

Can one of the admins verify this patch?

@HyukjinKwonHyukjinKwon mentioned this pull request Jul 16, 2018
zifeif2 pushed a commit to zifeif2/spark that referenced this pull request Nov 22, 2025
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@guoxiaolongzte@jiangxb1987@AmplabJenkins