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


##########
flink/v2.3/flink/src/main/java/org/apache/iceberg/flink/source/IcebergTableSource.java:
##########
@@ -237,4 +249,50 @@ public DynamicTableSource copy() {
   public String asSummaryString() {
     return "Iceberg table source";
   }
+
+  @Override
+  public LookupRuntimeProvider getLookupRuntimeProvider(LookupContext context) 
{
+    int[][] lookupKeys = context.getKeys();
+    int[] lookupKeyIndexes = new int[lookupKeys.length];
+    for (int i = 0; i < lookupKeys.length; i++) {
+      Preconditions.checkArgument(
+          lookupKeys[i].length == 1, "Iceberg lookup source doesn't support 
nested lookup key.");
+      lookupKeyIndexes[i] = lookupKeys[i][0];
+    }
+
+    ResolvedSchema projected = getProjectedSchema();
+    RowType projectedRowType = (RowType) 
projected.toPhysicalRowDataType().getLogicalType();
+
+    LookupOptions.LookupCacheType requestedCacheType =
+        flinkConfParser

Review Comment:
    If a snapshot ID is provided, it may require some manual intervention when 
the snapshot expires. But that’s user-driven behavior, so requiring a restart 
to recover is acceptable.
   
    I think these three cases are worth adding, and I’ll add support for them 
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