Skip to content

Commit 71e05cc

Browse files
committed
minor fix
1 parent 581fa1c commit 71e05cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercion.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ trait HiveTypeCoercion {
286286
*/
287287
object InConversion extends Rule[LogicalPlan] {
288288
def apply(plan: LogicalPlan): LogicalPlan = plan transformAllExpressions {
289-
case i @ In(a, b) if b.exists(_.dataType != StringType) =>
289+
case i @ In(a, b) if b.exists(_.dataType != a.dataType) =>
290290
i.makeCopy(Array(a, b.map(Cast(_, a.dataType))))
291291
}
292292
}

0 commit comments

Comments
 (0)