Skip to content

Commit

Permalink
Fix tests [Take 2]
Browse files Browse the repository at this point in the history
  • Loading branch information
shardulm94 committed Feb 23, 2021
1 parent 7089d52 commit c63b605
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1224,10 +1224,12 @@ class HiveQuerySuite extends HiveComparisonTest with SQLTestUtils with BeforeAnd
test("SPARK-33084: Add jar support Ivy URI in SQL") {
val testData = TestHive.getHiveFile("data/files/sample.json").toURI
withTable("t") {
// exclude org.pentaho:pentaho-aggdesigner-algorithm as this transitive dependency does
// not exist on mavencentral and hence cannot be found in the test environment
// hive-catalog-core has some transitive dependencies which dont exist on maven central
// and hence cannot be found in the test environment or are non-jar (.pom) which cause
// failures in tests. Use transitive=false as it should be good enough to test the Ivy
// support in Hive ADD JAR
sql(s"ADD JAR ivy://org.apache.hive.hcatalog:hive-hcatalog-core:$hiveVersion" +
"?exclude=org.pentaho:pentaho-aggdesigner-algorithm")
"?transitive=false")
sql(
"""CREATE TABLE t(a string, b string)
|ROW FORMAT SERDE 'org.apache.hive.hcatalog.data.JsonSerDe'""".stripMargin)
Expand Down

0 comments on commit c63b605

Please sign in to comment.