From e4ae974294fc61f03b235f82d1618f29cad8feee Mon Sep 17 00:00:00 2001 From: Reynold Xin Date: Mon, 18 Apr 2016 12:57:23 -0700 Subject: [HOTFIX] Fix Scala 2.10 compilation break. --- .../apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala | 4 ++-- 1 file 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) } -- cgit v1.2.3