Guosmilesmile commented on code in PR #19115:
URL: https://github.com/apache/iceberg/pull/19115#discussion_r4690668379


##########
flink/v2.3/flink/src/main/java/org/apache/iceberg/flink/source/lookup/IcebergFullCachingLookupFunction.java:
##########
@@ -242,18 +244,36 @@ private synchronized void loadCache() throws IOException {
         projectedRowType.getFieldNames(),
         pushedFilters);
 
+    if (cache != null
+        && reader.isAppendOnlyRange(currentSnapshotId, snapshotId)
+        && tryLoadDelta(currentSnapshotId, snapshotId)) {
+      return;
+    }
+
+    loadFull(snapshotId);
+  }
+
+  private boolean tryLoadDelta(long fromExclusive, long toInclusive) {
+    try {
+      loadDelta(fromExclusive, toInclusive);
+      return true;
+    } catch (Exception e) {

Review Comment:
   Good point. Currently, an interrupt is treated as a generic failure, causing 
the Delta path to fall back to a full load instead of stopping the task.
   
   I'll handle interruption consistently across all these paths in a follow-up 
PR.



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