jiwen624 commented on code in PR #19099:
URL: https://github.com/apache/iceberg/pull/19099#discussion_r4722389299


##########
flink/v2.3/flink/src/main/java/org/apache/iceberg/flink/source/enumerator/ContinuousSplitPlannerImpl.java:
##########
@@ -220,13 +221,23 @@ private ContinuousEnumerationResult 
discoverInitialSplits() {
    */
   @VisibleForTesting
   static Optional<Snapshot> startSnapshot(Table table, ScanContext 
scanContext) {
+    String branch = scanContext.branch();
+    if (branch != null
+        && !SnapshotRef.MAIN_BRANCH.equals(branch)

Review Comment:
   Good catch! It's not needed anymore since both resolve to 
`currentSnapshot()`. It's a left-over from an earlier commit that logged a 
warning inside `if` branch. Removed.



##########
flink/v2.3/flink/src/test/java/org/apache/iceberg/flink/source/enumerator/TestContinuousSplitPlannerImpl.java:
##########
@@ -731,4 +848,20 @@ private static class CycleResult {
       this.split = split;
     }
   }
+
+  private DataFile appendToBranch() throws IOException {

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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to