nada-attia commented on code in PR #18064:
URL: https://github.com/apache/hudi/pull/18064#discussion_r2771500758


##########
hudi-sync/hudi-hive-sync/src/main/java/org/apache/hudi/hive/ddl/QueryBasedDDLExecutor.java:
##########
@@ -220,5 +220,31 @@ private List<String> constructChangePartitions(String 
tableName, List<String> pa
     }
     return changePartitions;
   }
+
+  @Override
+  public void touchPartitionsToTable(String tableName, List<String> 
touchPartitions) {
+    if (touchPartitions.isEmpty()) {
+      log.info("No partitions to touch for " + tableName);
+      return;
+    }
+    log.info("Touching partitions " + touchPartitions.size() + " on " + 
tableName);
+    List<String> sqls = constructTouchPartitions(tableName, touchPartitions);
+    for (String sql : sqls) {
+      runSQL(sql);
+    }
+  }
+
+  private List<String> constructTouchPartitions(String tableName, List<String> 
partitions) {

Review Comment:
   done



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