From 32683c4972ae3954cb49a5cd85388b06f9ff9e12 Mon Sep 17 00:00:00 2001 From: Aaron Staple Date: Wed, 10 Sep 2014 16:01:00 -0700 Subject: [PATCH] Fix compilation failure due to merge. --- .../spark/sql/catalyst/analysis/HiveTypeCoercionSuite.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercionSuite.scala b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercionSuite.scala index ff97cadee47ba..baeb9b0cf5964 100644 --- a/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercionSuite.scala +++ b/sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercionSuite.scala @@ -88,9 +88,10 @@ class HiveTypeCoercionSuite extends FunSuite { } test("boolean casts") { + val booleanCasts = new HiveTypeCoercion { }.BooleanCasts def ruleTest(initial: Expression, transformed: Expression) { val testRelation = LocalRelation(AttributeReference("a", IntegerType)()) - assert(BooleanCasts(Project(Seq(Alias(initial, "a")()), testRelation)) == + assert(booleanCasts(Project(Seq(Alias(initial, "a")()), testRelation)) == Project(Seq(Alias(transformed, "a")()), testRelation)) } // Remove superflous boolean -> boolean casts.