Davis-Zhang-Onehouse commented on code in PR #12718:
URL: https://github.com/apache/hudi/pull/12718#discussion_r1933018989


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/Source.java:
##########
@@ -128,6 +139,17 @@ protected Option<Checkpoint> 
translateCheckpoint(Option<Checkpoint> lastCheckpoi
     throw new UnsupportedOperationException("Unsupported checkpoint type: " + 
lastCheckpoint.get());
   }
 
+  public void assertCheckpointVersion(Checkpoint checkpoint) {
+    if (checkpoint != null) {
+      if (shouldTargetCheckpointV2(writeTableVersion, getClass().getName()) && 
!(checkpoint instanceof StreamerCheckpointV2)) {
+        throw new IllegalStateException("Data source target checkpoint v2 
(completion time based) should always return checkpoint v2. Setup " + props);

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