Fokko commented on code in PR #13324:
URL: https://github.com/apache/iceberg/pull/13324#discussion_r2196106687


##########
spark/v3.5/spark/src/test/java/org/apache/iceberg/spark/data/vectorized/parquet/TestParquetVectorizedReads.java:
##########
@@ -400,4 +400,19 @@ public void testUnsupportedReadsForParquetV2() throws 
Exception {
         .hasMessageStartingWith("Cannot support vectorized reads for column")
         .hasMessageEndingWith("Disable vectorized reads to read this 
table/file");
   }
+
+  @Test
+  public void testUuidReads() throws Exception {
+    // Just one row to maintain dictionary encoding
+    int numRows = 1;
+    Schema schema = new Schema(optional(100, "uuid", Types.UUIDType.get()));
+
+    File dataFile = File.createTempFile("junit", null, temp.toFile());
+    assertThat(dataFile.delete()).as("Delete should succeed").isTrue();

Review Comment:
   There are multiple tests that use the same directory. Removing this line 
causes:
   
   ```
   > Task :iceberg-spark:iceberg-spark-3.5_2.12:test FAILED
   TestParquetVectorizedReads > testUuidReads() FAILED
       org.apache.iceberg.exceptions.AlreadyExistsException: File already 
exists: 
/var/folders/q_/gj3w0fts15n9l1dz58630jg40000gp/T/junit-17282529623949094801/junit6226812078387717274.tmp
           at 
app//org.apache.iceberg.Files$LocalOutputFile.create(Files.java:56)
   ```



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