eg-kazakov commented on issue #10258:
URL: https://github.com/apache/hudi/issues/10258#issuecomment-1845281236

   I think that replacecommits when we perform hard partitions delete by 
writing empty datasets in place of existed partitions. 
   
   `    deletePartitionDF.write.format("hudi")
         .option(HoodieWriteConfig.TBL_NAME.key, HUDI_TABLE_NAME)
         .option(OPERATION.key, 
DataSourceWriteOptions.DELETE_PARTITION_OPERATION_OPT_VAL)
         .option(DataSourceWriteOptions.PARTITIONS_TO_DELETE.key, partitionUrls)
         .option(TABLE_TYPE.key, DataSourceWriteOptions.COW_TABLE_TYPE_OPT_VAL)
         .option(RECORDKEY_FIELD.key, HUDI_RECORD_KEY)
         .option("hoodie.cleaner.policy", 
HoodieCleaningPolicy.KEEP_LATEST_FILE_VERSIONS.name())
         .option("hoodie.cleaner.fileversions.retained","1")
         .option(HIVE_STYLE_PARTITIONING.key, "true")
         .mode(SaveMode.Append)
         .save(destUrl)`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to