Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add another test
  • Loading branch information
Fokko committed Jun 18, 2025
commit cc50da4060e23399564f97a44f0ac5748e2eaa8f
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Iterable<Record> data = generateData(schema, numRows, 0L, 0, IDENTITY);
try (FileAppender<Record> writer = getParquetV2Writer(schema, dataFile)) {
writer.addAll(data);
}
assertRecordsMatch(schema, numRows, data, dataFile, false, BATCH_SIZE);
}
}