This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/orc.git
The following commit(s) were added to refs/heads/branch-2.1 by this push:
new 805d8b996 ORC-1853: Rename class `TesScanData` to `TestScanData`
805d8b996 is described below
commit 805d8b996d0819966d291d3d219dc8f55ce4b01e
Author: Dongjoon Hyun <[email protected]>
AuthorDate: Thu Feb 20 07:08:07 2025 -0800
ORC-1853: Rename class `TesScanData` to `TestScanData`
### What changes were proposed in this pull request?
This PR aims to rename class `TesScanData` to `TestScanData`.
### Why are the changes needed?
This is a typo when we added this class.
- #1833
### How was this patch tested?
Pass the CIs.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #2132 from dongjoon-hyun/ORC-1853.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit 47ac473a8ca71d9850de8aa4a0b2b7c43012da9c)
Signed-off-by: Dongjoon Hyun <[email protected]>
---
.../org/apache/orc/tools/{TesScanData.java => TestScanData.java} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/java/tools/src/test/org/apache/orc/tools/TesScanData.java
b/java/tools/src/test/org/apache/orc/tools/TestScanData.java
similarity index 94%
rename from java/tools/src/test/org/apache/orc/tools/TesScanData.java
rename to java/tools/src/test/org/apache/orc/tools/TestScanData.java
index df73abc90..e9042a403 100644
--- a/java/tools/src/test/org/apache/orc/tools/TesScanData.java
+++ b/java/tools/src/test/org/apache/orc/tools/TestScanData.java
@@ -36,7 +36,7 @@ import java.nio.charset.StandardCharsets;
import static org.junit.jupiter.api.Assertions.assertTrue;
-public class TesScanData {
+public class TestScanData {
private Path workDir = new Path(System.getProperty("test.tmp.dir"));
private Configuration conf;
private FileSystem fs;
@@ -47,7 +47,7 @@ public class TesScanData {
conf = new Configuration();
fs = FileSystem.getLocal(conf);
fs.setWorkingDirectory(workDir);
- testFilePath = new Path("TesScanData.testScan.orc");
+ testFilePath = new Path("TestScanData.testScan.orc");
fs.delete(testFilePath, false);
}
@@ -86,6 +86,6 @@ public class TesScanData {
assertTrue(output.contains("{\"category\": \"struct\", \"id\": 0, \"max\":
2, \"fields\": [\n" +
"{ \"x\": {\"category\": \"int\", \"id\": 1, \"max\": 1}},\n" +
"{ \"y\": {\"category\": \"string\", \"id\": 2, \"max\": 2}}]}"));
- assertTrue(output.contains("File: TesScanData.testScan.orc, bad batches:
0, rows: 10000/10000"));
+ assertTrue(output.contains("File: TestScanData.testScan.orc, bad batches:
0, rows: 10000/10000"));
}
}