You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@orc.apache.org by do...@apache.org on 2026/02/06 19:15:27 UTC
(orc) 01/01: ORC-2078: Fix `TestConverter` to respect `test.tmp.dir`
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-2.2
in repository https://gitbox.apache.org/repos/asf/orc.git
commit ac8f925473f583173aaa02213888db07c6201236
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Fri Feb 6 11:15:13 2026 -0800
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 <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
(cherry picked from commit 0dd2a6d4d6f8861c77f2c066da552e274a23550b)
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
java/tools/src/test/org/apache/orc/tools/convert/TestConvert.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/tools/src/test/org/apache/orc/tools/convert/TestConvert.java b/java/tools/src/test/org/apache/orc/tools/convert/TestConvert.java
index f20848559..69f4cb1fb 100644
--- a/java/tools/src/test/org/apache/orc/tools/convert/TestConvert.java
+++ b/java/tools/src/test/org/apache/orc/tools/convert/TestConvert.java
@@ -69,7 +69,7 @@ public class TestConvert implements TestConf {
@Test
public void testConvertCustomTimestampFromCsv() throws IOException, ParseException {
- Path csvFile = new Path("test.csv");
+ Path csvFile = new Path(workDir + File.separator + "test.csv");
FSDataOutputStream stream = fs.create(csvFile, true);
String[] timeValues = new String[] {"0001-01-01 00:00:00.000", "2021-12-01 18:36:00.800"};
stream.writeBytes(String.join("\n", timeValues));