Github user gatorsmile commented on the issue:

    https://github.com/apache/spark/pull/15168
  
    It sounds like the implementation of this PR does not support data source 
tables. Please try the following example.
    
    ```Scala
          spark
            .range(1).select('id as 'a, 'id as 'b, 'id as 'c, 'id as 'd).write
            .bucketBy(2, "b").sortBy("c").partitionBy("d")
            .saveAsTable("t1")
          sql("DESC FORMATTED t1 partition (d=1)").show(100, false)
    ```
    
    The error you will get is:
    ```
    
org.apache.hadoop.hive.ql.metadata.Table.ValidationFailureSemanticException: 
table is not partitioned but partition spec exists: {d=1};
    ```


---
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