From 546da0d5522ec79620bd29563c5ea809386635f5 Mon Sep 17 00:00:00 2001 From: yangjie01 Date: Thu, 18 Jul 2024 15:58:21 +0800 Subject: [PATCH] [MINOR][SQL][TESTS] Enable test case `testOrcAPI` in `JavaDataFrameReaderWriterSuite` ### What changes were proposed in this pull request? This PR enabled test case `testOrcAPI` in `JavaDataFrameReaderWriterSuite` because this test no longer depends on Hive classes, we can test it like other test cases in this Suite. ### Why are the changes needed? Enable test case `testOrcAPI` in `JavaDataFrameReaderWriterSuite` ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes #47400 from LuciferYang/minor-testOrcAPI. Authored-by: yangjie01 Signed-off-by: yangjie01 --- .../org/apache/spark/sql/JavaDataFrameReaderWriterSuite.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sql/core/src/test/java/test/org/apache/spark/sql/JavaDataFrameReaderWriterSuite.java b/sql/core/src/test/java/test/org/apache/spark/sql/JavaDataFrameReaderWriterSuite.java index 2a0c8c00574a1..691fb67bbe908 100644 --- a/sql/core/src/test/java/test/org/apache/spark/sql/JavaDataFrameReaderWriterSuite.java +++ b/sql/core/src/test/java/test/org/apache/spark/sql/JavaDataFrameReaderWriterSuite.java @@ -144,10 +144,7 @@ public void testParquetAPI() { .write().parquet(output); } - /** - * This only tests whether API compiles, but does not run it as orc() - * cannot be run without Hive classes. - */ + @Test public void testOrcAPI() { spark.read().schema(schema).orc(); spark.read().schema(schema).orc(input);