We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c77fda commit 32683c4Copy full SHA for 32683c4
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercionSuite.scala
@@ -88,9 +88,10 @@ class HiveTypeCoercionSuite extends FunSuite {
88
}
89
90
test("boolean casts") {
91
+ val booleanCasts = new HiveTypeCoercion { }.BooleanCasts
92
def ruleTest(initial: Expression, transformed: Expression) {
93
val testRelation = LocalRelation(AttributeReference("a", IntegerType)())
- assert(BooleanCasts(Project(Seq(Alias(initial, "a")()), testRelation)) ==
94
+ assert(booleanCasts(Project(Seq(Alias(initial, "a")()), testRelation)) ==
95
Project(Seq(Alias(transformed, "a")()), testRelation))
96
97
// Remove superflous boolean -> boolean casts.
0 commit comments