@@ -53,7 +53,7 @@ class SparkPlanTest extends SparkFunSuite {
53
53
input : DataFrame ,
54
54
planFunction : SparkPlan => SparkPlan ,
55
55
expectedAnswer : Seq [Row ],
56
- sortAnswers : Boolean ): Unit = {
56
+ sortAnswers : Boolean = true ): Unit = {
57
57
checkAnswer(
58
58
input :: Nil ,
59
59
(plans : Seq [SparkPlan ]) => planFunction(plans.head),
@@ -76,7 +76,7 @@ class SparkPlanTest extends SparkFunSuite {
76
76
right : DataFrame ,
77
77
planFunction : (SparkPlan , SparkPlan ) => SparkPlan ,
78
78
expectedAnswer : Seq [Row ],
79
- sortAnswers : Boolean ): Unit = {
79
+ sortAnswers : Boolean = true ): Unit = {
80
80
checkAnswer(
81
81
left :: right :: Nil ,
82
82
(plans : Seq [SparkPlan ]) => planFunction(plans(0 ), plans(1 )),
@@ -97,7 +97,7 @@ class SparkPlanTest extends SparkFunSuite {
97
97
input : Seq [DataFrame ],
98
98
planFunction : Seq [SparkPlan ] => SparkPlan ,
99
99
expectedAnswer : Seq [Row ],
100
- sortAnswers : Boolean ): Unit = {
100
+ sortAnswers : Boolean = true ): Unit = {
101
101
SparkPlanTest .checkAnswer(input, planFunction, expectedAnswer, sortAnswers) match {
102
102
case Some (errorMessage) => fail(errorMessage)
103
103
case None =>
@@ -117,7 +117,7 @@ class SparkPlanTest extends SparkFunSuite {
117
117
input : DataFrame ,
118
118
planFunction : SparkPlan => SparkPlan ,
119
119
expectedAnswer : Seq [A ],
120
- sortAnswers : Boolean ): Unit = {
120
+ sortAnswers : Boolean = true ): Unit = {
121
121
val expectedRows = expectedAnswer.map(Row .fromTuple)
122
122
checkAnswer(input, planFunction, expectedRows, sortAnswers)
123
123
}
@@ -137,7 +137,7 @@ class SparkPlanTest extends SparkFunSuite {
137
137
right : DataFrame ,
138
138
planFunction : (SparkPlan , SparkPlan ) => SparkPlan ,
139
139
expectedAnswer : Seq [A ],
140
- sortAnswers : Boolean ): Unit = {
140
+ sortAnswers : Boolean = true ): Unit = {
141
141
val expectedRows = expectedAnswer.map(Row .fromTuple)
142
142
checkAnswer(left, right, planFunction, expectedRows, sortAnswers)
143
143
}
@@ -155,7 +155,7 @@ class SparkPlanTest extends SparkFunSuite {
155
155
input : Seq [DataFrame ],
156
156
planFunction : Seq [SparkPlan ] => SparkPlan ,
157
157
expectedAnswer : Seq [A ],
158
- sortAnswers : Boolean ): Unit = {
158
+ sortAnswers : Boolean = true ): Unit = {
159
159
val expectedRows = expectedAnswer.map(Row .fromTuple)
160
160
checkAnswer(input, planFunction, expectedRows, sortAnswers)
161
161
}
@@ -176,7 +176,7 @@ class SparkPlanTest extends SparkFunSuite {
176
176
input : DataFrame ,
177
177
planFunction : SparkPlan => SparkPlan ,
178
178
expectedPlanFunction : SparkPlan => SparkPlan ,
179
- sortAnswers : Boolean ): Unit = {
179
+ sortAnswers : Boolean = true ): Unit = {
180
180
SparkPlanTest .checkAnswer(input, planFunction, expectedPlanFunction, sortAnswers) match {
181
181
case Some (errorMessage) => fail(errorMessage)
182
182
case None =>
0 commit comments