-
- Downloads
[SPARK-20023][SQL] Output table comment for DESC FORMATTED
### What changes were proposed in this pull request? Currently, `DESC FORMATTED` did not output the table comment, unlike what `DESC EXTENDED` does. This PR is to fix it. Also correct the following displayed names in `DESC FORMATTED`, for being consistent with `DESC EXTENDED` - `"Create Time:"` -> `"Created:"` - `"Last Access Time:"` -> `"Last Access:"` ### How was this patch tested? Added test cases in `describe.sql` Author: Xiao Li <gatorsmile@gmail.com> Closes #17381 from gatorsmile/descFormattedTableComment.
Showing
- sql/core/src/main/scala/org/apache/spark/sql/execution/command/tables.scala 3 additions, 2 deletions...scala/org/apache/spark/sql/execution/command/tables.scala
- sql/core/src/test/resources/sql-tests/inputs/describe.sql 7 additions, 7 deletionssql/core/src/test/resources/sql-tests/inputs/describe.sql
- sql/core/src/test/resources/sql-tests/results/describe.sql.out 111 additions, 14 deletions...ore/src/test/resources/sql-tests/results/describe.sql.out
- sql/core/src/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala 3 additions, 3 deletions...c/test/scala/org/apache/spark/sql/SQLQueryTestSuite.scala
Please register or sign in to comment