Skip to content

Commit

Permalink
Fix compilation failure due to merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
staple committed Sep 10, 2014
1 parent 7c77fda commit 32683c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 32683c4

Please sign in to comment.