Skip to content

Commit 708c847

Browse files
author
Kapil Singh
committed
[minor] Fixed unit test as per 1.6
1 parent b60e788 commit 708c847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/CodeGenerationSuite.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ class CodeGenerationSuite extends SparkFunSuite with ExpressionEvalHelper {
8282

8383
test("SPARK-18091: split large if expressions into blocks due to JVM code size limit") {
8484
var strExpr: Expression = Literal("abc")
85-
for (_ <- 1 to 150) {
85+
for (_ <- 1 to 100) {
8686
strExpr = Decode(Encode(strExpr, "utf-8"), "utf-8")
8787
}
8888

8989
val expressions = Seq(If(EqualTo(strExpr, strExpr), strExpr, strExpr))
90-
val plan = GenerateMutableProjection.generate(expressions)
90+
val plan = GenerateMutableProjection.generate(expressions)()
9191
val actual = plan(null).toSeq(expressions.map(_.dataType))
9292
val expected = Seq(UTF8String.fromString("abc"))
9393

0 commit comments

Comments
 (0)