danny0405 commented on code in PR #13380:
URL: https://github.com/apache/hudi/pull/13380#discussion_r2128566221


##########
hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/spark/sql/hudi/command/procedures/RunTTLProcedure.scala:
##########
@@ -79,7 +79,7 @@ class RunTTLProcedure extends BaseProcedure with 
ProcedureBuilder with Logging {
     try {
       client = HoodieCLIUtils.createHoodieWriteClient(sparkSession, basePath, 
confs,
         tableName.asInstanceOf[Option[String]])
-      val ttlInstantTime = client.createNewInstantTime()
+      val ttlInstantTime = 
client.startCommit(HoodieTimeline.REPLACE_COMMIT_ACTION)

Review Comment:
   This is not right, the requested instant was created with empty 
`HoodieRequestedReplaceMetadata`.



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