diff options
author | Reynold Xin <rxin@databricks.com> | 2016-04-02 23:05:23 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-04-02 23:05:23 -0700 |
commit | 7be46205083fc688249ee619ac7758904f7aa55d (patch) | |
tree | 2a05cb9db6a617e49fde1092c66f0f82fc8bad5f /sql/catalyst/src | |
parent | c2f25b1a148eeb1791ea7018b14b3a665c13212a (diff) | |
download | spark-7be46205083fc688249ee619ac7758904f7aa55d.tar.gz spark-7be46205083fc688249ee619ac7758904f7aa55d.tar.bz2 spark-7be46205083fc688249ee619ac7758904f7aa55d.zip |
[HOTFIX] Fix Scala 2.10 compilation
Diffstat (limited to 'sql/catalyst/src')
-rw-r--r-- | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/SimplifyConditionalSuite.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/SimplifyConditionalSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/SimplifyConditionalSuite.scala index 33239c0084..c02fec3085 100644 --- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/SimplifyConditionalSuite.scala +++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/SimplifyConditionalSuite.scala @@ -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( @@ -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)) } |