GitHub user yanbohappy opened a pull request:

    https://github.com/apache/spark/pull/4207

    Implement Describe Table for SQLContext

    Initial code snippet for Describe Table command.
    #1 SQL Parser and generate logical plan. Add "DESCRIBE [FORMATTED] 
[db_name.]table_name" command parser in SparkSQLParser and generate the same 
logical plan for both SQLContext and HiveContext.
    (note: HiveContext also support "DESCRIBE [FORMATTED] [db_name.]table_name 
PARTITION partition_column_name" and "DESCRIBE [FORMATTED] [db_name.]table_name 
column_name" is implement by Hive native command)
    #2 Implement DescribeCommand which invoke by RunnableCommand.
    #3 For SQLContext the code is clearly structured, but for HiveContext the 
output of describe command need to stay the same Hive. So For HiveContext, we 
still transfer logical command to DescribeHiveTableCommand which had been 
implement in HiveStrategies.HiveCommandStrategy.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/yanbohappy/spark spark-5324

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/4207.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 #4207
    
----
commit 7fb2e81d682d8f641275077b94dfb6d7de466de8
Author: Yanbo Liang <[email protected]>
Date:   2015-01-26T15:29:10Z

    Implement Describe Table for SQLContext

----


---
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]

Reply via email to