@@ -3830,16 +3830,44 @@ index 52abd248f3a..b4e096cae24 100644
38303830 case d: DynamicPruningExpression => d.child
38313831 }
38323832diff --git a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveUDFDynamicLoadSuite.scala b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveUDFDynamicLoadSuite.scala
3833- index 4b27082e188..6710c90c789 100644
3833+ index 4b27082e188..057b2430872 100644
38343834--- a/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveUDFDynamicLoadSuite.scala
38353835+++ b/sql/hive/src/test/scala/org/apache/spark/sql/hive/HiveUDFDynamicLoadSuite.scala
3836- @@ -147,7 +147,9 @@ class HiveUDFDynamicLoadSuite extends QueryTest with SQLTestUtils with TestHiveS
3836+ @@ -17,7 +17,7 @@
3837+
3838+ package org.apache.spark.sql.hive
3839+
3840+ - import org.apache.spark.sql.{QueryTest, Row}
3841+ + import org.apache.spark.sql.{IgnoreCometSuite, QueryTest, Row}
3842+ import org.apache.spark.sql.catalyst.expressions.{AttributeReference, Expression}
3843+ import org.apache.spark.sql.hive.HiveShim.HiveFunctionWrapper
3844+ import org.apache.spark.sql.hive.test.TestHiveSingleton
3845+ @@ -26,7 +26,13 @@ import org.apache.spark.sql.types.{IntegerType, StringType}
3846+ import org.apache.spark.util.ArrayImplicits._
3847+ import org.apache.spark.util.Utils
3848+
3849+ - class HiveUDFDynamicLoadSuite extends QueryTest with SQLTestUtils with TestHiveSingleton {
3850+ + // Comet: mix in IgnoreCometSuite so these tests are reported as ignored when Comet is enabled
3851+ + // (ENABLE_COMET=true). The jar these tests depend on (`hive-test-udfs.jar`) is stripped from the
3852+ + // Spark 4.0.1 release source tag per the ASF binary-artifact policy, so the tests cannot run in
3853+ + // Comet's CI. Ignoring keeps the suite passing without masking real regressions; the upstream
3854+ + // tests still run in non-Comet Spark builds that ship the jar on branch-4.0.
3855+ + class HiveUDFDynamicLoadSuite extends QueryTest with SQLTestUtils with TestHiveSingleton
3856+ + with IgnoreCometSuite {
3857+
3858+ case class UDFTestInformation(
3859+ identifier: String,
3860+ @@ -147,7 +153,13 @@ class HiveUDFDynamicLoadSuite extends QueryTest with SQLTestUtils with TestHiveS
38373861
38383862 // This jar file should not be placed to the classpath.
38393863 val jarPath = "src/test/noclasspath/hive-test-udfs.jar"
38403864- assume(new java.io.File(jarPath).exists)
3841- + // Comet: hive-test-udfs.jar files has been removed from Apache Spark repository
3842- + // comment out the following line for now
3865+ + // Comet: the upstream `assume(...)` runs here in the suite constructor (inside this foreach,
3866+ + // before `test(...)` registers a case). When the jar is missing - as it is on the v4.0.1
3867+ + // release tag - `assume` throws TestCanceledException out of `<init>`, which ScalaTest
3868+ + // reports as a suite abort (not a per-test cancel) and fails the whole job. The
3869+ + // IgnoreCometSuite mixin above already reroutes these tests to `ignore` under Comet, so
3870+ + // the jar presence check is unnecessary; comment it out to avoid the constructor-time abort.
38433871+ // assume(new java.io.File(jarPath).exists)
38443872 val jarUrl = s"file://${System.getProperty("user.dir")}/$jarPath"
38453873
0 commit comments