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 2edb3607d ORC-1053: Fix `TestConverter` to respect `test.tmp.dir`
2edb3607d is described below

commit 2edb3607d808d68690e95cd9af11591af2d0932d
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Fri Feb 6 11:07:08 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 #2515 from dongjoon-hyun/ORC-2078.
    
    Authored-by: Dongjoon Hyun <[email protected]>
    Signed-off-by: Dongjoon Hyun <[email protected]>
    (cherry picked from commit e463f42421148432c824c88bcbfe4c6d00015fc9)
    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));

Reply via email to