[HOTFIX] Fix Scala 2.10 compilation break.

This commit is contained in:
Reynold Xin 2016-04-18 12:57:23 -07:00
parent 3d66a2ce9b
commit e4ae974294

View file

@ -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)
}