bryanck commented on code in PR #8169:
URL: https://github.com/apache/iceberg/pull/8169#discussion_r1284354266


##########
core/src/main/java/org/apache/iceberg/io/ResolvingFileIO.java:
##########
@@ -129,28 +162,31 @@ public Configuration getConf() {
     return hadoopConf.get();
   }
 
-  private FileIO io(String location) {
+  private <T extends FileIO & SupportsPrefixOperations & 
SupportsBulkOperations> T io(
+      String location) {
     String impl = implFromLocation(location);
-    FileIO io = ioInstances.get(impl);
+    T io = (T) ioInstances.get(impl);

Review Comment:
   After further thought, this isn't a great solution as it allows declaring a 
ResolvingFileIO with an incompatible generic type, e,g, `new 
ResolvingFileIO<MyType>()`, so I'll need to revert this change.



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