aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReynold Xin <rxin@databricks.com>2016-04-18 12:57:23 -0700
committerReynold Xin <rxin@databricks.com>2016-04-18 12:57:23 -0700
commite4ae974294fc61f03b235f82d1618f29cad8feee (patch)
tree52051a3fa55c65522dfa12e37e57de3b181e9683
parent3d66a2ce9bfc19096e07181f9e970372d32bbc0b (diff)
downloadspark-e4ae974294fc61f03b235f82d1618f29cad8feee.tar.gz
spark-e4ae974294fc61f03b235f82d1618f29cad8feee.tar.bz2
spark-e4ae974294fc61f03b235f82d1618f29cad8feee.zip
[HOTFIX] Fix Scala 2.10 compilation break.
-rw-r--r--sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala4
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)
}