Guosmilesmile commented on code in PR #19115:
URL: https://github.com/apache/iceberg/pull/19115#discussion_r4706454450
##########
flink/v2.3/flink/src/main/java/org/apache/iceberg/flink/source/lookup/IcebergFullCachingLookupFunction.java:
##########
@@ -242,18 +246,46 @@ 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) {
+ incrementalLoadFailuresCounter.inc();
Review Comment:
Good catch. Add it now.
--
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]