diff options
author | Reynold Xin <rxin@databricks.com> | 2016-04-18 12:57:23 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-04-18 12:57:23 -0700 |
commit | e4ae974294fc61f03b235f82d1618f29cad8feee (patch) | |
tree | 52051a3fa55c65522dfa12e37e57de3b181e9683 /sql | |
parent | 3d66a2ce9bfc19096e07181f9e970372d32bbc0b (diff) | |
download | spark-e4ae974294fc61f03b235f82d1618f29cad8feee.tar.gz spark-e4ae974294fc61f03b235f82d1618f29cad8feee.tar.bz2 spark-e4ae974294fc61f03b235f82d1618f29cad8feee.zip |
[HOTFIX] Fix Scala 2.10 compilation break.
Diffstat (limited to 'sql')
-rw-r--r-- | sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala index 56de82237b..33916c0891 100644 --- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala +++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala @@ -71,7 +71,7 @@ class MiscFunctionsSuite extends SparkFunSuite with ExpressionEvalHelper { test("assert_true") { intercept[RuntimeException] { - checkEvaluation(AssertTrue(Literal(false, BooleanType)), null) + checkEvaluation(AssertTrue(Literal.create(false, BooleanType)), null) } intercept[RuntimeException] { checkEvaluation(AssertTrue(Cast(Literal(0), BooleanType)), null) @@ -82,7 +82,7 @@ class MiscFunctionsSuite extends SparkFunSuite with ExpressionEvalHelper { intercept[RuntimeException] { checkEvaluation(AssertTrue(Literal.create(null, BooleanType)), null) } - checkEvaluation(AssertTrue(Literal(true, BooleanType)), null) + checkEvaluation(AssertTrue(Literal.create(true, BooleanType)), null) checkEvaluation(AssertTrue(Cast(Literal(1), BooleanType)), null) } |