linhao1990 commented on code in PR #5533:
URL: https://github.com/apache/iceberg/pull/5533#discussion_r949756049


##########
core/src/main/java/org/apache/iceberg/IncrementalDataTableScan.java:
##########
@@ -130,15 +131,26 @@ private static List<Snapshot> snapshotsWithin(
       if (snapshot.operation().equals(DataOperations.APPEND)) {
         snapshots.add(snapshot);
       } else if (snapshot.operation().equals(DataOperations.OVERWRITE)) {
-        throw new UnsupportedOperationException(
-            String.format(
-                "Found %s operation, cannot support incremental data in 
snapshots (%s, %s]",
-                DataOperations.OVERWRITE, fromSnapshotId, toSnapshotId));
+        if (incrementalPullIgnoreOverwrite(table)) {
+          continue;
+        } else {

Review Comment:
   Yes, the `else` block is redundant and shall be removed.



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