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-29979][SQL][FOLLOW-UP] improve the output of DesribeTableExec #26677

Closed
wants to merge 3 commits into from

Conversation

fuwhu
Copy link
Contributor

@fuwhu fuwhu commented Nov 26, 2019

What changes were proposed in this pull request?

refine the output of "DESC TABLE" command.

After this PR, the output of "DESC TABLE" command is like below :

id                        bigint              	                    
data                      string

# Partitioning
Part 0                    id              	                    
                    	                    	                    
# Detailed Table Information	                    	                    
Name                      testca.table_name
Comment                   this is a test table
Location                  /tmp/testcat/table_name
Provider                  foo
Table Properties          [bar=baz]    

Why are the changes needed?

Currently, "DESC TABLE" will show reserved properties (eg. location, comment) in the "Table Property" section.
Since reserved properties are different from common properties, displaying reserved properties together with other table detailed information and displaying other properties in single field should be reasonable, and it is consistent with hive and DescribeTableCommand action.

Does this PR introduce any user-facing change?

yes, the output of "DESC TABLE" command is refined as above.

How was this patch tested?

Update existing unit tests.

@fuwhu
Copy link
Contributor Author

fuwhu commented Nov 26, 2019

cc @cloud-fan

@cloud-fan
Copy link
Contributor

ok to test

@SparkQA
Copy link

SparkQA commented Nov 26, 2019

Test build #114457 has finished for PR 26677 at commit f24645c.

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

@fuwhu fuwhu force-pushed the SPARK-29979-FOLLOWUP-1 branch from f24645c to 22592bb Compare November 27, 2019 07:33
@SparkQA
Copy link

SparkQA commented Nov 27, 2019

Test build #114514 has finished for PR 26677 at commit 22592bb.

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

Test build #114522 has finished for PR 26677 at commit ae1c1ba.

  • 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 16da714 Nov 27, 2019
@fuwhu fuwhu deleted the SPARK-29979-FOLLOWUP-1 branch November 27, 2019 23:21
attilapiros pushed a commit to attilapiros/spark that referenced this pull request Dec 6, 2019
### What changes were proposed in this pull request?
refine the output of "DESC TABLE" command.

After this PR, the output of "DESC TABLE" command is like below :

```
id                        bigint
data                      string

# Partitioning
Part 0                    id

# Detailed Table Information
Name                      testca.table_name
Comment                   this is a test table
Location                  /tmp/testcat/table_name
Provider                  foo
Table Properties          [bar=baz]
```

### Why are the changes needed?
Currently, "DESC TABLE" will show reserved properties (eg. location, comment) in the "Table Property" section.
Since reserved properties are different from common properties, displaying reserved properties together with other table detailed information and displaying other properties in single field should be reasonable, and it is consistent with hive and DescribeTableCommand action.

### Does this PR introduce any user-facing change?
yes, the output of "DESC TABLE" command is refined as above.

### How was this patch tested?
Update existing unit tests.

Closes apache#26677 from fuwhu/SPARK-29979-FOLLOWUP-1.

Authored-by: fuwhu <[email protected]>
Signed-off-by: Wenchen Fan <[email protected]>
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.

4 participants