Skip to content

Commit 0d4c89a

Browse files
committed
set shuffle partitions to one in the test suite
1 parent 104e943 commit 0d4c89a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/test/scala/com/github/mrpowers/spark/stringmetric/SparkSessionTestWrapper.scala

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ import org.apache.spark.sql.SparkSession
55
trait SparkSessionTestWrapper {
66

77
lazy val spark: SparkSession = {
8-
SparkSession.builder().master("local").appName("spark session").getOrCreate()
8+
SparkSession
9+
.builder()
10+
.master("local")
11+
.appName("spark session")
12+
.config("spark.sql.shuffle.partitions", "1")
13+
.getOrCreate()
914
}
1015

1116
}

0 commit comments

Comments
 (0)