From da05d8508d5bde325ca87ffb711927b78a99f93c Mon Sep 17 00:00:00 2001 From: Dongjoon Hyun Date: Thu, 20 Feb 2025 07:08:07 -0800 Subject: [PATCH] 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 Signed-off-by: Dongjoon Hyun (cherry picked from commit 47ac473a8ca71d9850de8aa4a0b2b7c43012da9c) Signed-off-by: Dongjoon Hyun --- .../orc/tools/{TesScanData.java => TestScanData.java} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename java/tools/src/test/org/apache/orc/tools/{TesScanData.java => TestScanData.java} (94%) 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 df73abc900..e9042a4037 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 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 void openFileSystem() throws Exception { 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 void testScan() throws Exception { 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")); } }