TengHuo commented on code in PR #9413:
URL: https://github.com/apache/hudi/pull/9413#discussion_r1302454473


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/clean/CleanActionExecutor.java:
##########
@@ -147,7 +148,9 @@ List<HoodieCleanStat> clean(HoodieEngineContext context, 
HoodieCleanerPlan clean
     List<String> partitionsToBeDeleted = 
cleanerPlan.getPartitionsToBeDeleted() != null ? 
cleanerPlan.getPartitionsToBeDeleted() : new ArrayList<>();
     partitionsToBeDeleted.forEach(entry -> {
       try {
-        deleteFileAndGetResult(table.getMetaClient().getFs(), 
table.getMetaClient().getBasePath() + "/" + entry);
+        if (!StringUtils.isNullOrEmpty(entry)) {
+          deleteFileAndGetResult(table.getMetaClient().getFs(), 
table.getMetaClient().getBasePath() + "/" + entry);

Review Comment:
   Hi @leosanqing 
   
   May I ask if you have encountered this issue? A writer generated data files 
incorrectly in table root path, but the table is a partitioned table.
   
   E.g.
   
   ```
   hdfs://..../hudi_table_folder/partition1/...parquet
   hdfs://..../hudi_table_folder/partition2/...parquet
   hdfs://..../hudi_table_folder/...parquet <- this file should not be here.
   ```



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