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


##########
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:
   Shall we handle the other read options as well, like `tag`, `branch`, 
`snapshot` etc.?
   I know this complicates the PR, but partially solves the "how to pinpoint a 
snapshot" question as well.
   If you think we can do it in a follow-up PR, and throw until we implement 
them?



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