We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 581fa1c commit 71e05ccCopy full SHA for 71e05cc
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/analysis/HiveTypeCoercion.scala
@@ -286,7 +286,7 @@ trait HiveTypeCoercion {
286
*/
287
object InConversion extends Rule[LogicalPlan] {
288
def apply(plan: LogicalPlan): LogicalPlan = plan transformAllExpressions {
289
- case i @ In(a, b) if b.exists(_.dataType != StringType) =>
+ case i @ In(a, b) if b.exists(_.dataType != a.dataType) =>
290
i.makeCopy(Array(a, b.map(Cast(_, a.dataType))))
291
}
292
0 commit comments