Skip to content
Snippets Groups Projects
Commit e4ae9742 authored by Reynold Xin's avatar Reynold Xin
Browse files

[HOTFIX] Fix Scala 2.10 compilation break.

parent 3d66a2ce
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment