ebyhr commented on code in PR #14620:
URL: https://github.com/apache/iceberg/pull/14620#discussion_r2541269553


##########
data/src/test/java/org/apache/iceberg/data/parquet/TestGenericData.java:
##########
@@ -142,7 +143,8 @@ public void testTwoLevelList() throws IOException {
     File testFile = temp.resolve("test-file" + System.nanoTime()).toFile();
 
     ParquetWriter<org.apache.avro.generic.GenericRecord> writer =
-        AvroParquetWriter.<org.apache.avro.generic.GenericRecord>builder(new 
Path(testFile.toURI()))
+        AvroParquetWriter.<org.apache.avro.generic.GenericRecord>builder(
+                new LocalOutputFile(Path.of(testFile.toURI())))

Review Comment:
   @huaxingao Thanks! Updated to use `toPath()`. 
   
   @tmater The builder method expects `org.apache.parquet.io.OutputFile`, not 
`org.apache.iceberg.io.OutputFile`. It requires another method call 
`ParquetIO.file`. 



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