Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/pr_build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,6 @@ jobs:
value: |
org.apache.spark.sql.CometToPrettyStringSuite

exclude:
# Skip fuzz suite for Spark 4.0
# https://github.com/apache/datafusion-comet/issues/2965
- profile:
name: "Spark 4.0, JDK 17, Scala 2.13"
suite:
name: "fuzz"

fail-fast: false
name: ${{ matrix.os }}/${{ matrix.profile.name }} [${{ matrix.suite.name }}]
runs-on: ${{ matrix.os }}
Expand All @@ -152,6 +144,14 @@ jobs:
jdk-version: ${{ matrix.profile.java_version }}
jdk-architecture: aarch64
protoc-architecture: aarch_64
- name: Set thread thresholds envs for spark test on macOS
# see: https://github.com/apache/datafusion-comet/issues/2965
shell: bash
run: |
echo "SPARK_TEST_SQL_SHUFFLE_EXCHANGE_MAX_THREAD_THRESHOLD=256" >> $GITHUB_ENV
echo "SPARK_TEST_SQL_RESULT_QUERY_STAGE_MAX_THREAD_THRESHOLD=256" >> $GITHUB_ENV
echo "SPARK_TEST_HIVE_SHUFFLE_EXCHANGE_MAX_THREAD_THRESHOLD=48" >> $GITHUB_ENV
echo "SPARK_TEST_HIVE_RESULT_QUERY_STAGE_MAX_THREAD_THRESHOLD=48" >> $GITHUB_ENV
- name: Java test steps
uses: ./.github/actions/java-test
with:
Expand Down
8 changes: 8 additions & 0 deletions spark/src/test/scala/org/apache/spark/sql/CometTestBase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ abstract class CometTestBase
// this is an edge case, and we expect most users to allow sorts on floating point, so we
// enable this for the tests
conf.set(CometConf.getExprAllowIncompatConfigKey("SortOrder"), "true")
// For spark 4.0 tests, we need limit the thread threshold to avoid OOM, see:
// https://github.com/apache/datafusion-comet/issues/2965
conf.set(
"spark.sql.shuffleExchange.maxThreadThreshold",
sys.env.getOrElse("SPARK_TEST_SQL_SHUFFLE_EXCHANGE_MAX_THREAD_THRESHOLD", "1024"))
conf.set(
"spark.sql.resultQueryStage.maxThreadThreshold",
sys.env.getOrElse("SPARK_TEST_SQL_RESULT_QUERY_STAGE_MAX_THREAD_THRESHOLD", "1024"))
conf
}

Expand Down