Skip to content

Commit

Permalink
fix CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmay-bhat committed Dec 22, 2023
1 parent 27500f2 commit a818fbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import static org.apache.iceberg.types.Types.NestedField.required;
import static org.assertj.core.api.Assertions.assertThat;

import java.io.File;
import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
Expand Down Expand Up @@ -254,6 +255,9 @@ private Object[] toJava(InternalRow row) {
private DataFile writeDataFile(List<Record> records) throws IOException {
// records all use IDs that are in bucket id_bucket=0
return FileHelpers.writeDataFile(
table, Files.localOutput(temp.resolve("junit").toFile()), TestHelpers.Row.of(0), records);
table,
Files.localOutput(File.createTempFile("junit", null, temp.toFile())),
TestHelpers.Row.of(0),
records);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2281,7 +2281,7 @@ private DeleteFile writeEqDeleteFile(Table table) {
try {
return FileHelpers.writeDeleteFile(
table,
Files.localOutput(temp.toFile()),
Files.localOutput(File.createTempFile("junit", null, temp.toFile())),
org.apache.iceberg.TestHelpers.Row.of(1),
deletes,
deleteRowSchema);
Expand Down

0 comments on commit a818fbb

Please sign in to comment.