stevenzwu commented on code in PR #4649:
URL: https://github.com/apache/iceberg/pull/4649#discussion_r862405880


##########
flink/v1.14/flink/src/main/java/org/apache/iceberg/flink/IcebergTableSource.java:
##########
@@ -47,7 +55,8 @@
  * Flink Iceberg table source.
  */
 public class IcebergTableSource
-    implements ScanTableSource, SupportsProjectionPushDown, 
SupportsFilterPushDown, SupportsLimitPushDown {
+    implements ScanTableSource, LookupTableSource, SupportsProjectionPushDown, 
SupportsFilterPushDown,

Review Comment:
   It is probably common to load Iceberg as `ScanTableSource`.  But it is 
unclear how Iceberg fits as a lookup source. @hailin0 can you provide some 
context on the actual use cases?
   
   I thought LookupTableSource is meant for external storage that supports fast 
point query (like HBase/JDBC). `HBaseDynamicTableSource` also supports async 
lookup function.
   
   Here is the Javadoc from `LookupTableSource`
   ```
    * A {@link DynamicTableSource} that looks up rows of an external storage 
system by one or more keys
    * during runtime.
    *
    * <p>Compared to {@link ScanTableSource}, the source does not have to read 
the entire table and can
    * lazily fetch individual values from a (possibly continuously changing) 
external table when
    * necessary.
   ```
   



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