Skip to content

Commit

Permalink
perform self-review to update temporary folder
Browse files Browse the repository at this point in the history
  • Loading branch information
llama90 committed Jun 9, 2024
1 parent 6b2c6d6 commit 7e7d1a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import java.io.InputStream;
import java.lang.reflect.Method;
import java.nio.ByteBuffer;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;

Expand All @@ -52,7 +51,7 @@
public class AvroTestBase {

@TempDir
protected Path tempDir;
public File TMP;

protected AvroToArrowConfig config;

Expand Down Expand Up @@ -82,7 +81,7 @@ public static Schema getSchema(String schemaName) throws Exception {
}

protected VectorSchemaRoot writeAndRead(Schema schema, List data) throws Exception {
File dataFile = tempDir.resolve("test.avro").toFile();
File dataFile = new File(TMP, "test.avro");

BinaryEncoder
encoder = new EncoderFactory().directBinaryEncoder(new FileOutputStream(dataFile), null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public void init() {
}

private AvroToArrowVectorIterator convert(Schema schema, List data) throws Exception {
File dataFile = tempDir.resolve("test.avro").toFile();
File dataFile = new File(TMP, "test.avro");

BinaryEncoder
encoder = new EncoderFactory().directBinaryEncoder(new FileOutputStream(dataFile), null);
Expand Down

0 comments on commit 7e7d1a6

Please sign in to comment.