pvary commented on code in PR #19115:
URL: https://github.com/apache/iceberg/pull/19115#discussion_r4677912922
##########
flink/v2.3/flink/src/test/java/org/apache/iceberg/flink/source/lookup/TestIcebergLookup.java:
##########
@@ -283,6 +394,122 @@ void lookupFunctionReloadsCacheFromTrigger() throws
Exception {
.satisfies(row -> assertRow(row, 1L, "alicia", "C"));
}
+ @Test
+ void lookupFunctionAppliesDeltaOnReload() throws Exception {
+ Table table = createTableWithRecords();
+ ManualCacheReloadTrigger reloadTrigger = new ManualCacheReloadTrigger();
+
+ lookupFunction = newLookupFunction(ID_KEY_INDEXES, true, reloadTrigger);
+ lookupFunction.open(new FunctionContext(null));
+
+ appendRecords(table, ImmutableList.of(record(6L, "frank", "D")));
Review Comment:
Could you add a case that appends a row for an already-cached key (e.g.
record(1L, "alice-2", "A")) and asserts the lookup returns both the old and the
new row after reload?
--
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]