Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[minor] Fixed unit test as per 1.6
  • Loading branch information
Kapil Singh committed Dec 15, 2016
commit 708c847bd86ded2f58ec0ff05424cc437aac99b5
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ class CodeGenerationSuite extends SparkFunSuite with ExpressionEvalHelper {

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

val expressions = Seq(If(EqualTo(strExpr, strExpr), strExpr, strExpr))
val plan = GenerateMutableProjection.generate(expressions)
val plan = GenerateMutableProjection.generate(expressions)()
val actual = plan(null).toSeq(expressions.map(_.dataType))
val expected = Seq(UTF8String.fromString("abc"))

Expand Down