Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-3722

Fix truncate hudi table's error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • spark-sql

    Description

      2. when truncate partition tableļ¼Œneither metadata nor data is truncated and truncate partition table with partition specs failsĀ 

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

      Attachments

        Issue Links

          Activity

            People

              x1q1j1 Forward Xu
              x1q1j1 Forward Xu
              Shaofeng Li
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: