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
The following commit(s) were added to refs/heads/branch-2.2 by this push:
new 5130edd75 ORC-1053: Fix `TestConverter` to respect `test.tmp.dir`
5130edd75 is described below
commit 5130edd751344666fcceb8dcf425b8130a174757
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri Feb 6 11:13:07 2026 -0800
ORC-1053: Fix `TestConverter` to respect `test.tmp.dir`
### What changes were proposed in this pull request?
This PR aims to fix `TestConverter` to respect `test.tmp.dir`.
### Why are the changes needed?
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)
```
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: `Gemini 3 Pro (High)` on `Antigravity`
Closes #2516 from dongjoon-hyun/ORC-2078.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 0dd2a6d4d6f8861c77f2c066da552e274a23550b)
Signed-off-by: Dongjoon Hyun <[email protected]>
---
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));