Skip to content

Commit ac8f925

Browse files
committed
ORC-2078: Fix TestConverter to respect test.tmp.dir
This PR aims to fix `TestConverter` to respect `test.tmp.dir`. To avoid generating temporary files in a wrong place. It makes `git` confused like the following. ``` $ cd java $ mvn package $ git status On branch main Your branch is up to date with 'apache/main'. Untracked files: (use "git add <file>..." to include in what will be committed) tools/.test.csv.crc tools/test.csv nothing added to commit but untracked files present (use "git add" to track) ``` Pass the CIs. Generated-by: `Gemini 3 Pro (High)` on `Antigravity` Closes #2516 from dongjoon-hyun/ORC-2078. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org> (cherry picked from commit 0dd2a6d) Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
1 parent 97a6db2 commit ac8f925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/tools/src/test/org/apache/orc/tools/convert/TestConvert.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void resetDefaultTimeZone() {
6969

7070
@Test
7171
public void testConvertCustomTimestampFromCsv() throws IOException, ParseException {
72-
Path csvFile = new Path("test.csv");
72+
Path csvFile = new Path(workDir + File.separator + "test.csv");
7373
FSDataOutputStream stream = fs.create(csvFile, true);
7474
String[] timeValues = new String[] {"0001-01-01 00:00:00.000", "2021-12-01 18:36:00.800"};
7575
stream.writeBytes(String.join("\n", timeValues));

0 commit comments

Comments
 (0)