Github user skambha commented on a diff in the pull request:

    https://github.com/apache/spark/pull/15168#discussion_r79746339
  
    --- Diff: 
sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/SQLQuerySuite.scala 
---
    @@ -341,6 +342,25 @@ class SQLQuerySuite extends QueryTest with 
SQLTestUtils with TestHiveSingleton {
         }
       }
     
    +  test("describe partition") {
    +    withTable("partitioned_table") {
    +      sql("CREATE TABLE partitioned_table (a STRING, b INT) PARTITIONED BY 
(c STRING, d STRING)")
    +      sql("ALTER TABLE partitioned_table ADD PARTITION (c='Us', d=1)")
    +
    +      sql("DESC partitioned_table PARTITION (c='Us', d=1)")
    --- End diff --
    
    Hive supports describe based on the partition specified and will list the 
details for the particular partition when used with formatted or extended 
option. 
    DESCRIBE formatted part_table partition (d='abc') 
    
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-Describe
    
    @dongjoon-hyun, this might be beyond the scope of this PR but this would be 
useful if there are a lot of partitions and we want to find details for a given 
partition.  What do you think? Thanks.



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to