Forward Xu created HUDI-3722:
--------------------------------

             Summary: Fix truncate table's error
                 Key: HUDI-3722
                 URL: https://issues.apache.org/jira/browse/HUDI-3722
             Project: Apache Hudi
          Issue Type: Bug
          Components: spark-sql
            Reporter: Forward Xu
            Assignee: Forward Xu


2. when truncate partition table,neither metadata nor data is truncated and 
truncate partition table with partition specs failsĀ 
{code:java}
// truncate partition table without partition spec, the query is success but 
never delete data
spark-sql> truncate table mor_partition_table_0314;
Time taken: 0.256 seconds

// truncate partition table with partition spec, 
spark-sql> truncate table mor_partition_table_0314 partition(dt=3);
Error in query: Table spark_catalog.default.mor_partition_table_0314 does not 
support partition management.;
'TruncatePartition unresolvedpartitionspec((dt,3), None)
+- ResolvedTable org.apache.spark.sql.hudi.catalog.HoodieCatalog@63f609a4, 
default.mor_partition_table_0314,{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to