-
- Downloads
[SPARK-20954][SQL] `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 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 | +--------+---------+-------+ ``` ## How was this patch tested? Pass the Jenkins with the updated test suites. Author: Dongjoon Hyun <dongjoon@apache.org> Closes #18203 from dongjoon-hyun/SPARK-20954.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala 11 additions, 6 deletions...scala/org/apache/spark/sql/execution/command/tables.scala
- sql/core/src/test/resources/sql-tests/results/change-column.sql.out 0 additions, 9 deletions...rc/test/resources/sql-tests/results/change-column.sql.out
- sql/core/src/test/resources/sql-tests/results/describe-table-after-alter-table.sql.out 0 additions, 5 deletions...ql-tests/results/describe-table-after-alter-table.sql.out
- sql/core/src/test/resources/sql-tests/results/describe.sql.out 0 additions, 17 deletions...ore/src/test/resources/sql-tests/results/describe.sql.out
- sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala 1 addition, 1 deletion...la/org/apache/spark/sql/hive/execution/HiveDDLSuite.scala
Loading
Please register or sign in to comment