GitHub user dongjoon-hyun opened a pull request:

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

    [SPARK-20954][SQL] Simple `DESCRIBE` result should be compatible with 
previous Spark

    ## What changes were proposed in this pull request?
    
    After [SPARK-20067](https://issues.apache.org/jira/browse/SPARK-20067), a 
simple `DESCRIBE` (without `EXTENDED`/`FORMATTED`) shows the following result. 
This is incompatible with Spark 2.1.1. This PR removes the column header line 
in case of the simple `DESCRIBE` command.
    
    *MASTER and BRANCH-2.2*
    ```
    scala> sql("desc t").show(false)
    +----------+---------+-------+
    |col_name  |data_type|comment|
    +----------+---------+-------+
    |# col_name|data_type|comment|
    |a         |int      |null   |
    +----------+---------+-------+
    ```
    
    *SPARK 2.1.1 and this PR*
    ```
    scala> sql("desc t").show(false)
    +--------+---------+-------+
    |col_name|data_type|comment|
    +--------+---------+-------+
    |a       |int      |null   |
    +--------+---------+-------+
    ```
    
    ## How was this patch tested?
    
    Pass the Jenkins with the updated test suites.

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

    $ git pull https://github.com/dongjoon-hyun/spark SPARK-20954

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

    https://github.com/apache/spark/pull/18203.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 #18203
    
----
commit a0b8b1d1e07c8d4a77d123150041537cca442167
Author: Dongjoon Hyun <[email protected]>
Date:   2017-06-05T06:28:51Z

    [SPARK-20954][SQL] Simple `DESCRIBE` result should be compatible with 
previous Spark and Hive.

----


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