We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d97cfb commit 09ea1beCopy full SHA for 09ea1be
1 file changed
spark/src/test/scala/org/apache/spark/sql/CometTestBase.scala
@@ -89,6 +89,14 @@ abstract class CometTestBase
89
// this is an edge case, and we expect most users to allow sorts on floating point, so we
90
// enable this for the tests
91
conf.set(CometConf.getExprAllowIncompatConfigKey("SortOrder"), "true")
92
+ // For spark 4.0 tests, we need limit the thread threshold to avoid OOM, see:
93
+ // https://github.com/apache/datafusion-comet/issues/2965
94
+ conf.set(
95
+ "spark.sql.shuffleExchange.maxThreadThreshold",
96
+ sys.env.getOrElse("SPARK_TEST_SQL_SHUFFLE_EXCHANGE_MAX_THREAD_THRESHOLD", "1024"))
97
98
+ "spark.sql.resultQueryStage.maxThreadThreshold",
99
+ sys.env.getOrElse("SPARK_TEST_SQL_RESULT_QUERY_STAGE_MAX_THREAD_THRESHOLD", "1024"))
100
conf
101
}
102
0 commit comments