Skip to content
Snippets Groups Projects
Commit 7be46205 authored by Reynold Xin's avatar Reynold Xin
Browse files

[HOTFIX] Fix Scala 2.10 compilation

parent c2f25b1a
No related branches found
No related tags found
No related merge requests found
...@@ -41,7 +41,7 @@ class SimplifyConditionalSuite extends PlanTest with PredicateHelper { ...@@ -41,7 +41,7 @@ class SimplifyConditionalSuite extends PlanTest with PredicateHelper {
private val trueBranch = (TrueLiteral, Literal(5)) private val trueBranch = (TrueLiteral, Literal(5))
private val normalBranch = (NonFoldableLiteral(true), Literal(10)) private val normalBranch = (NonFoldableLiteral(true), Literal(10))
private val unreachableBranch = (FalseLiteral, Literal(20)) 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") { test("simplify if") {
assertEquivalent( assertEquivalent(
...@@ -53,7 +53,7 @@ class SimplifyConditionalSuite extends PlanTest with PredicateHelper { ...@@ -53,7 +53,7 @@ class SimplifyConditionalSuite extends PlanTest with PredicateHelper {
Literal(20)) Literal(20))
assertEquivalent( assertEquivalent(
If(Literal(null, NullType), Literal(10), Literal(20)), If(Literal.create(null, NullType), Literal(10), Literal(20)),
Literal(20)) Literal(20))
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment