You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sunitha Kambhampati (JIRA)" <ji...@apache.org> on 2016/09/20 20:37:20 UTC

[jira] [Resolved] (SPARK-16115) Improve output column name for SHOW PARTITIONS command and improve an error message

     [ https://issues.apache.org/jira/browse/SPARK-16115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sunitha Kambhampati resolved SPARK-16115.
-----------------------------------------
       Resolution: Resolved
    Fix Version/s: 2.1.0

> 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
>             Fix For: 2.1.0
>
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org