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/06/21 21:02:57 UTC

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

Sunitha Kambhampati created SPARK-16115:
-------------------------------------------

             Summary: 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. 

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