Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses-you committed Nov 15, 2023
1 parent 7d372b2 commit e0948ba
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package io.glutenproject.benchmarks

import io.glutenproject.GlutenConfig
import io.glutenproject.execution.{VeloxWholeStageTransformerSuite, WholeStageTransformer}

import org.apache.spark.sql.execution.adaptive.{AdaptiveSparkPlanExec, ShuffleQueryStageExec}
Expand Down Expand Up @@ -50,8 +51,9 @@ class NativeBenchmarkPlanGenerator extends VeloxWholeStageTransformerSuite {
}

test("Test plan json non-empty - AQE off") {
spark.sparkContext.setLogLevel("DEBUG")
withSQLConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "false") {
withSQLConf(
SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "false",
GlutenConfig.CACHE_WHOLE_STAGE_TRANSFORMER_CONTEXT.key -> "true") {
val df = spark
.sql("""
|select * from lineitem
Expand All @@ -69,8 +71,9 @@ class NativeBenchmarkPlanGenerator extends VeloxWholeStageTransformerSuite {
}

test("Test plan json non-empty - AQE on") {
spark.sparkContext.setLogLevel("DEBUG")
withSQLConf(SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true") {
withSQLConf(
SQLConf.ADAPTIVE_EXECUTION_ENABLED.key -> "true",
GlutenConfig.CACHE_WHOLE_STAGE_TRANSFORMER_CONTEXT.key -> "true") {
val df = spark
.sql("""
|select * from lineitem join orders on l_orderkey = o_orderkey
Expand All @@ -90,10 +93,10 @@ class NativeBenchmarkPlanGenerator extends VeloxWholeStageTransformerSuite {

test("generate example", GenerateExample) {
import testImplicits._
spark.sparkContext.setLogLevel("DEBUG")
withSQLConf(
SQLConf.AUTO_BROADCASTJOIN_THRESHOLD.key -> "-1",
SQLConf.SHUFFLE_PARTITIONS.key -> "2"
SQLConf.SHUFFLE_PARTITIONS.key -> "2",
GlutenConfig.CACHE_WHOLE_STAGE_TRANSFORMER_CONTEXT.key -> "true"
) {
val q4_lineitem = spark
.sql(s"""
Expand Down

0 comments on commit e0948ba

Please sign in to comment.