GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/18245
[SPARK-20954][SQL][BRANCH-2.2] `DESCRIBE [EXTENDED]` 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),
`DESCRIBE` and `DESCRIBE EXTENDED` shows the following result. This is
incompatible with Spark 2.1.1. This PR removes the column header line in case
of those commands.
**MASTER** and **BRANCH-2.2**
```scala
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
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-BRANCH-2.2
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/18245.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 #18245
----
commit a7ba2387f1d33c874a1c195e8adc4d7ff7183a21
Author: Dongjoon Hyun <[email protected]>
Date: 2017-06-08T23:46:56Z
[SPARK-20954][SQL][BRANCH-2.2] `DESCRIBE [EXTENDED]` result should be
compatible with previous Spark
After [SPARK-20067](https://issues.apache.org/jira/browse/SPARK-20067),
`DESCRIBE` and `DESCRIBE EXTENDED` shows the following result. This is
incompatible with Spark 2.1.1. This PR removes the column header line in case
of those command.
**MASTER** and **BRANCH-2.2**
```scala
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
scala> sql("desc t").show(false)
+--------+---------+-------+
|col_name|data_type|comment|
+--------+---------+-------+
|a |int |null |
+--------+---------+-------+
```
Pass the Jenkins with the updated test suites.
----
---
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]