Uh oh!
There was an error while loading. Please reload this page.
[SPARK-23364][SQL]'desc table' command in spark-sql add column head display - #20557
[SPARK-23364][SQL]'desc table' command in spark-sql add column head display#20557guoxiaolongzte wants to merge 2 commits into
Conversation
AmplabJenkins
commented
Feb 9, 2018
Can one of the admins verify this patch? |
| s"DESC PARTITION is not allowed on a temporary view: ${table.identifier}") | ||
| } | ||
| describeSchema(catalog.lookupRelation(table).schema, result, header = false) | ||
| describeSchema(catalog.lookupRelation(table).schema, result, header = true) |
There was a problem hiding this comment.
May be should add a configure like hive.cli.print.header.
There was a problem hiding this comment.
It's not worth yet another flag, and this is a behavior change in the output. There's no motivation for this change either.
There was a problem hiding this comment.
Partition Information
col_name data_type comment
Partition information also takes up two rows.
I try to keep the head of the case, let rows number is displayed correctly.
There was a problem hiding this comment.
@gatorsmile I wasn't clear -- you're saying this change is wrong because it re-adds a header that was removed in the other PR?
There was a problem hiding this comment.
Yeah. Hive beeline already hardcoded the header. See the https://issues.apache.org/jira/browse/SPARK-20954
guoxiaolongzte
commented
Feb 12, 2018
Can I overload hive's org.apache.hive.beeline.Commands.java in spark sql package, modify the hive's hard-coded statistics rows? | # Partition Information | | | |
gatorsmile
commented
Feb 13, 2018
cc @liufengdb |
liufengdb
commented
Feb 13, 2018
There may be some spark JDBC/ODBC drivers need to parse the returned results to get all the columns. We should avoid making changes on the returned "schema" from the server side. You can fix the issue on the client side. |
guoxiaolongzte
commented
Feb 26, 2018
Well, for now, I don't have a better solution. |
Closesapache#20458Closesapache#20530Closesapache#20557Closesapache#20966Closesapache#20857Closesapache#19694Closesapache#18227Closesapache#20683Closesapache#20881Closesapache#20347Closesapache#20825Closesapache#20078Closesapache#21281Closesapache#19951Closesapache#20905Closesapache#20635 Author: Sean Owen <srowen@gmail.com> Closesapache#21303 from srowen/ClosePRs.


What changes were proposed in this pull request?
Use 'desc partition_table' command in spark-sql client, i think it should add column head display.
Add 'col_name' ‘data_type’ 'comment' column head display.
fix before:

fix after:

How was this patch tested?
manual tests
Please review http://spark.apache.org/contributing.html before opening a pull request.