singhpk234 commented on code in PR #6655:
URL: https://github.com/apache/iceberg/pull/6655#discussion_r1095306379


##########
core/src/main/java/org/apache/iceberg/hadoop/Util.java:
##########
@@ -84,10 +88,38 @@ public static String[] blockLocations(FileIO io, 
ScanTaskGroup<?> taskGroup) {
     return locations.toArray(HadoopInputFile.NO_LOCATION_PREFERENCE);
   }
 
+  public static boolean usesHadoopFileIO(FileIO io, String location) {

Review Comment:
   +1, this would match the flink behaviour, i refrained for making them same 
because let's say if my FileIO is S3FileIO and from spark read option i pass 
locality as true, it would make locality enabled as true and unnecessarily 
check `blockLocations` , earlier we would have short circuited it and made 
locality enabled as false upfront based on S3FileIO. Your thoughts ? 



-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to