This is an automated email from the ASF dual-hosted git repository.
zhouyuan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gluten.git
The following commit(s) were added to refs/heads/main by this push:
new db37143929 [GLUTEN-13751][CORE] Remove flaky SPARK-33084 Hive Ivy test
(#13753)
db37143929 is described below
commit db37143929b6a6322f6c78e7556134a0ef859f8e
Author: Wechar Yu <[email protected]>
AuthorDate: Wed Nov 25 06:00:12 2026 +0800
[GLUTEN-13751][CORE] Remove flaky SPARK-33084 Hive Ivy test (#13753)
---
.../sql/hive/execution/GlutenHiveQuerySuite.scala | 25 ----------------------
.../sql/hive/execution/GlutenHiveQuerySuite.scala | 24 ---------------------
.../sql/hive/execution/GlutenHiveQuerySuite.scala | 24 ---------------------
.../sql/hive/execution/GlutenHiveQuerySuite.scala | 24 ---------------------
.../sql/hive/execution/GlutenHiveQuerySuite.scala | 24 ---------------------
5 files changed, 121 deletions(-)
diff --git
a/gluten-ut/spark34/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
b/gluten-ut/spark34/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
index f547953c58..eb41fbe361 100644
---
a/gluten-ut/spark34/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
+++
b/gluten-ut/spark34/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
@@ -18,7 +18,6 @@ package org.apache.spark.sql.hive.execution
import org.apache.spark.SparkFiles
import org.apache.spark.sql.GlutenTestSetWithSystemPropertyTrait
-import org.apache.spark.sql.hive.HiveUtils.{builtinHiveVersion => hiveVersion}
import org.apache.spark.sql.hive.test.HiveTestJars
import org.apache.spark.tags.SlowHiveTest
@@ -74,30 +73,6 @@ class GlutenHiveQuerySuite
assert(sql(s"list jar $testJar").count() == 1)
}
- testGluten("SPARK-33084: Add jar support Ivy URI in SQL") {
- val testData = hiveResourcePath("data/files/sample.json").toUri
- withTable("t") {
- // 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" +
- "?transitive=false")
- sql("""CREATE TABLE t(a string, b string)
- |ROW FORMAT SERDE
'org.apache.hive.hcatalog.data.JsonSerDe'""".stripMargin)
- sql(s"""LOAD DATA LOCAL INPATH "$testData" INTO TABLE t""")
- sql("SELECT * FROM src JOIN t on src.key = t.a")
- assert(
- sql("LIST JARS")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- assert(
- sql("LIST JAR")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- }
- }
-
testGluten("CREATE TEMPORARY FUNCTION") {
val jarURL = hiveResourcePath("TestUDTF.jar").toUri.toURL
sql(s"ADD JAR $jarURL")
diff --git
a/gluten-ut/spark35/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
b/gluten-ut/spark35/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
index 2b4c715a51..eb41fbe361 100644
---
a/gluten-ut/spark35/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
+++
b/gluten-ut/spark35/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
@@ -18,7 +18,6 @@ package org.apache.spark.sql.hive.execution
import org.apache.spark.SparkFiles
import org.apache.spark.sql.GlutenTestSetWithSystemPropertyTrait
-import org.apache.spark.sql.hive.HiveUtils.{builtinHiveVersion => hiveVersion}
import org.apache.spark.sql.hive.test.HiveTestJars
import org.apache.spark.tags.SlowHiveTest
@@ -74,29 +73,6 @@ class GlutenHiveQuerySuite
assert(sql(s"list jar $testJar").count() == 1)
}
- testGluten("SPARK-33084: Add jar support Ivy URI in SQL") {
- val testData = hiveResourcePath("data/files/sample.json").toUri
- withTable("t") {
- // 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?transitive=false")
- sql("""CREATE TABLE t(a string, b string)
- |ROW FORMAT SERDE
'org.apache.hive.hcatalog.data.JsonSerDe'""".stripMargin)
- sql(s"""LOAD DATA LOCAL INPATH "$testData" INTO TABLE t""")
- sql("SELECT * FROM src JOIN t on src.key = t.a")
- assert(
- sql("LIST JARS")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- assert(
- sql("LIST JAR")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- }
- }
-
testGluten("CREATE TEMPORARY FUNCTION") {
val jarURL = hiveResourcePath("TestUDTF.jar").toUri.toURL
sql(s"ADD JAR $jarURL")
diff --git
a/gluten-ut/spark40/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
b/gluten-ut/spark40/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
index 4b72a08986..0950d718b5 100644
---
a/gluten-ut/spark40/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
+++
b/gluten-ut/spark40/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
@@ -18,7 +18,6 @@ package org.apache.spark.sql.hive.execution
import org.apache.spark.SparkFiles
import org.apache.spark.sql.GlutenTestSetWithSystemPropertyTrait
-import org.apache.spark.sql.hive.HiveUtils.{builtinHiveVersion => hiveVersion}
import org.apache.spark.tags.SlowHiveTest
import java.io.File
@@ -47,27 +46,4 @@ class GlutenHiveQuerySuite
assert(sql("list
file").filter(_.getString(0).contains("data/files/v1.txt")).count() > 0)
assert(sql(s"list file $testFile").count() == 1)
}
-
- testGluten("SPARK-33084: Add jar support Ivy URI in SQL") {
- val testData = hiveResourcePath("data/files/sample.json").toUri
- withTable("t") {
- // 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?transitive=false")
- sql("""CREATE TABLE t(a string, b string)
- |ROW FORMAT SERDE
'org.apache.hive.hcatalog.data.JsonSerDe'""".stripMargin)
- sql(s"""LOAD DATA LOCAL INPATH "$testData" INTO TABLE t""")
- sql("SELECT * FROM src JOIN t on src.key = t.a")
- assert(
- sql("LIST JARS")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- assert(
- sql("LIST JAR")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- }
- }
}
diff --git
a/gluten-ut/spark41/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
b/gluten-ut/spark41/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
index 4b72a08986..0950d718b5 100644
---
a/gluten-ut/spark41/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
+++
b/gluten-ut/spark41/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
@@ -18,7 +18,6 @@ package org.apache.spark.sql.hive.execution
import org.apache.spark.SparkFiles
import org.apache.spark.sql.GlutenTestSetWithSystemPropertyTrait
-import org.apache.spark.sql.hive.HiveUtils.{builtinHiveVersion => hiveVersion}
import org.apache.spark.tags.SlowHiveTest
import java.io.File
@@ -47,27 +46,4 @@ class GlutenHiveQuerySuite
assert(sql("list
file").filter(_.getString(0).contains("data/files/v1.txt")).count() > 0)
assert(sql(s"list file $testFile").count() == 1)
}
-
- testGluten("SPARK-33084: Add jar support Ivy URI in SQL") {
- val testData = hiveResourcePath("data/files/sample.json").toUri
- withTable("t") {
- // 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?transitive=false")
- sql("""CREATE TABLE t(a string, b string)
- |ROW FORMAT SERDE
'org.apache.hive.hcatalog.data.JsonSerDe'""".stripMargin)
- sql(s"""LOAD DATA LOCAL INPATH "$testData" INTO TABLE t""")
- sql("SELECT * FROM src JOIN t on src.key = t.a")
- assert(
- sql("LIST JARS")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- assert(
- sql("LIST JAR")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- }
- }
}
diff --git
a/gluten-ut/spark42/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
b/gluten-ut/spark42/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
index 184af6b7d5..dac9e312b8 100644
---
a/gluten-ut/spark42/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
+++
b/gluten-ut/spark42/src/test/scala/org/apache/spark/sql/hive/execution/GlutenHiveQuerySuite.scala
@@ -18,7 +18,6 @@ package org.apache.spark.sql.hive.execution
import org.apache.spark.SparkFiles
import org.apache.spark.sql.GlutenTestSetWithSystemPropertyTrait
-import org.apache.spark.sql.hive.HiveUtils.{builtinHiveVersion => hiveVersion}
import org.apache.spark.sql.hive.test.{HiveTestJars, TestUDTFJar}
import org.apache.spark.tags.SlowHiveTest
@@ -72,27 +71,4 @@ class GlutenHiveQuerySuite
sql(s"ADD JAR $testJar2")
assert(sql(s"list jar $testJar").count() == 1)
}
-
- testGluten("SPARK-33084: Add jar support Ivy URI in SQL") {
- val testData = hiveResourcePath("data/files/sample.json").toUri
- withTable("t") {
- // 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?transitive=false")
- sql("""CREATE TABLE t(a string, b string)
- |ROW FORMAT SERDE
'org.apache.hive.hcatalog.data.JsonSerDe'""".stripMargin)
- sql(s"""LOAD DATA LOCAL INPATH "$testData" INTO TABLE t""")
- sql("SELECT * FROM src JOIN t on src.key = t.a")
- assert(
- sql("LIST JARS")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- assert(
- sql("LIST JAR")
- .filter(_.getString(0).contains(
- s"org.apache.hive.hcatalog_hive-hcatalog-core-$hiveVersion.jar"))
- .count() > 0)
- }
- }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]