GitHub user dilipbiswal opened a pull request:
https://github.com/apache/spark/pull/12460
[SPARK-14127] Describe table
## What changes were proposed in this pull request?
This PR adds .support for describing partitions and columns. Support for
describing
tables were already in place. The PR moves the code to
SessionCatalog/HiveSessionCatalog.
Command Syntax:
``` SQL
DESCRIBE [EXTENDED|FORMATTED] [db_name.]table_name [column_name] [PARTITION
partition_spec]
```
## How was this patch tested?
Added test cases to DDLCommandSuite to verify the plan. Added some error
tests
to HiveCommandSuite. The rest of the coverage should be from existing test
cases.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dilipbiswal/spark dkb_desc_tbl
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12460.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12460
----
commit 5b349dae9f15e9c0e08c00d77d5baac6ae0d85a2
Author: Dilip Biswal <[email protected]>
Date: 2016-04-14T05:33:08Z
[SPARK-14127] Describe table
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]