Skip to content

Commit d7b60c8

Browse files
committed
another bug
1 parent b0e3549 commit d7b60c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ trait HiveTypeCoercion {
445445
e2 @ DecimalType.Expression(p2, s2)) if p1 != p2 || s1 != s2 =>
446446
val resultType = DecimalType(max(p1, p2), max(s1, s2))
447447
b.makeCopy(Array(Cast(e1, resultType), Cast(e2, resultType)))
448-
case b @ BinaryComparison(e1 @ DecimalType.Fixed(_, _), e2)
448+
case b @ BinaryComparison(e1 @ DecimalType.Expression(_, _), e2)
449449
if e2.dataType == DecimalType.Unlimited =>
450450
b.makeCopy(Array(Cast(e1, DecimalType.Unlimited), e2))
451-
case b @ BinaryComparison(e1, e2 @ DecimalType.Fixed(_, _))
451+
case b @ BinaryComparison(e1, e2 @ DecimalType.Expression(_, _))
452452
if e1.dataType == DecimalType.Unlimited =>
453453
b.makeCopy(Array(e1, Cast(e2, DecimalType.Unlimited)))
454454

0 commit comments

Comments
 (0)