Skip to content

Commit c63b605

Browse files
committed
Fix tests [Take 2]
1 parent 7089d52 commit c63b605

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sql/hive/src/test/scala/org/apache/spark/sql/hive/execution/HiveQuerySuite.scala

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,10 +1224,12 @@ class HiveQuerySuite extends HiveComparisonTest with SQLTestUtils with BeforeAnd
12241224
test("SPARK-33084: Add jar support Ivy URI in SQL") {
12251225
val testData = TestHive.getHiveFile("data/files/sample.json").toURI
12261226
withTable("t") {
1227-
// exclude org.pentaho:pentaho-aggdesigner-algorithm as this transitive dependency does
1228-
// not exist on mavencentral and hence cannot be found in the test environment
1227+
// hive-catalog-core has some transitive dependencies which dont exist on maven central
1228+
// and hence cannot be found in the test environment or are non-jar (.pom) which cause
1229+
// failures in tests. Use transitive=false as it should be good enough to test the Ivy
1230+
// support in Hive ADD JAR
12291231
sql(s"ADD JAR ivy://org.apache.hive.hcatalog:hive-hcatalog-core:$hiveVersion" +
1230-
"?exclude=org.pentaho:pentaho-aggdesigner-algorithm")
1232+
"?transitive=false")
12311233
sql(
12321234
"""CREATE TABLE t(a string, b string)
12331235
|ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'""".stripMargin)

0 commit comments

Comments
 (0)