rdblue commented on code in PR #15595:
URL: https://github.com/apache/iceberg/pull/15595#discussion_r2927993763


##########
core/src/main/java/org/apache/iceberg/rest/RESTTableScan.java:
##########
@@ -74,16 +71,15 @@ class RESTTableScan extends DataTableScan {
           .build();
 
   private final RESTClient client;
-  private final Map<String, String> headers;
-  private final TableOperations operations;
-  private final Table table;
-  private final ResourcePaths resourcePaths;
-  private final TableIdentifier tableIdentifier;
-  private final Set<Endpoint> supportedEndpoints;
+  private final Supplier<Map<String, String>> headers;
+  private final String planTableScanPath;
+  private final Function<String, String> planPath;
+  private final String fetchScanTasksPath;
+  private final boolean supportsAsync;
+  private final boolean supportsCancel;
+  private final boolean supportsFetchTasks;
   private final ParserContext parserContext;
-  private final Map<String, String> catalogProperties;
-  private final Object hadoopConf;
-  private final FileIO tableIO;
+  private final BiFunction<List<StorageCredential>, Map<String, String>, 
FileIO> fileIOFactory;

Review Comment:
   The response object returns `List<Credential>` using the interface. Why is 
this `List<StorageCredential>`?
   
   Also, there is no need to pass a map just to pass the plan ID, right? 
Couldn't this be `BiFunction<List<Credential>, String, FileIO>`?



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