[
https://issues.apache.org/jira/browse/SPARK-16115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15342689#comment-15342689
]
Sunitha Kambhampati commented on SPARK-16115:
---------------------------------------------
I will submit a PR shortly.
> Improve output column name for SHOW PARTITIONS command and improve an error
> message
> -----------------------------------------------------------------------------------
>
> Key: SPARK-16115
> URL: https://issues.apache.org/jira/browse/SPARK-16115
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 2.0.0
> Reporter: Sunitha Kambhampati
> Priority: Minor
>
> Opening this issue to address the following:
> 1. For the SHOW PARTITIONS command, the column name in the output is
> 'result'. In Hive, the column name is 'partition' which is more
> descriptive. Change the output schema, column name from 'result' to
> 'partition'
> 2. Corner case: Improve the error message for a non-existent table
> Right now, the below error is thrown:
> scala> spark.sql("show partitions t1");
> org.apache.spark.sql.AnalysisException: SHOW PARTITIONS is not allowed on
> a table that is not partitioned: default.t1;
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]