Skip to content

Commit

Permalink
Run mortgage test both with AQE on and off: (NVIDIA#440)
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove authored Jul 28, 2020
1 parent dc216e3 commit 1944562
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*
* Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.nvidia.spark.rapids.tests.mortgage

class MortgageAdaptiveSparkSuite extends MortgageSparkSuite {
override def adaptiveQueryEnabled: Boolean = true
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ import org.apache.spark.sql.SparkSession
import org.apache.spark.sql.functions._

class MortgageSparkSuite extends FunSuite {

/**
* This is intentionally a def rather than a val so that scalatest uses the correct value (from
* this class or the derived class) when registering tests.
*/
def adaptiveQueryEnabled = false

lazy val session: SparkSession = {
var builder = SparkSession.builder
.master("local[2]")
.appName("MortgageTests")
.config("spark.sql.adaptive.enabled", adaptiveQueryEnabled)
.config("spark.sql.join.preferSortMergeJoin", false)
.config("spark.sql.shuffle.partitions", 2)
.config("spark.plugins", "com.nvidia.spark.SQLPlugin")
Expand Down

0 comments on commit 1944562

Please sign in to comment.