File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -88,13 +88,13 @@ class CodeGenerationSuite extends SparkFunSuite with ExpressionEvalHelper {
8888 (condition, Literal (n))
8989 }
9090
91- val expression = CaseWhen ((1 to cases).map(generateCase(_) ))
91+ val expression = CaseWhen ((1 to cases).map(generateCase))
9292
9393 val plan = GenerateMutableProjection .generate(Seq (expression))
94- val input = new GenericInternalRow (Array [Any ](UTF8String .fromString(s " ${ clauses} : ${ cases} " )))
94+ val input = new GenericInternalRow (Array [Any ](UTF8String .fromString(s " $clauses: $ cases" )))
9595 val actual = plan(input).toSeq(Seq (expression.dataType))
9696
97- assert(actual( 0 ) == cases)
97+ assert(actual.head == cases)
9898 }
9999
100100 test(" SPARK-22543: split large if expressions into blocks due to JVM code size limit" ) {
You can’t perform that action at this time.
0 commit comments