yihua commented on code in PR #11947:
URL: https://github.com/apache/hudi/pull/11947#discussion_r1805924992


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/hudi/streaming/HoodieStreamSource.scala:
##########
@@ -186,11 +160,11 @@ class HoodieStreamSource(
     }
   }
 
-  private def startCommitTime(startOffset: HoodieSourceOffset): String = {
+  private def startCompletionTime(startOffset: HoodieSourceOffset): String = {
     startOffset match {
-      case INIT_OFFSET => startOffset.commitTime
-      case HoodieSourceOffset(commitTime) =>
-        commitTime
+      case INIT_OFFSET => startOffset.completionTime
+      case HoodieSourceOffset(completionTime) =>
+        HoodieInstantTimeGenerator.instantTimePlusMillis(completionTime, 1)

Review Comment:
   One question I have is for `CDCRelation`. The default range type is 
hardcoded to `OPEN_CLOSED` before this PR.  I've maintained that.  Let me know 
if I need to change it too.



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