Skip to content

Commit

Permalink
[HOTFIX] Fix Scala 2.10 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Apr 3, 2016
1 parent c2f25b1 commit 7be4620
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SimplifyConditionalSuite extends PlanTest with PredicateHelper {
private val trueBranch = (TrueLiteral, Literal(5))
private val normalBranch = (NonFoldableLiteral(true), Literal(10))
private val unreachableBranch = (FalseLiteral, Literal(20))
private val nullBranch = (Literal(null, NullType), Literal(30))
private val nullBranch = (Literal.create(null, NullType), Literal(30))

test("simplify if") {
assertEquivalent(
Expand All @@ -53,7 +53,7 @@ class SimplifyConditionalSuite extends PlanTest with PredicateHelper {
Literal(20))

assertEquivalent(
If(Literal(null, NullType), Literal(10), Literal(20)),
If(Literal.create(null, NullType), Literal(10), Literal(20)),
Literal(20))
}

Expand Down

0 comments on commit 7be4620

Please sign in to comment.