Skip to content

Commit 8dacdc9

Browse files
committed
remove decimal match in mathematics_numerical_coercion
Signed-off-by: jayzhan211 <[email protected]>
1 parent c6bcf8a commit 8dacdc9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

datafusion/expr/src/type_coercion/binary.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,15 @@ fn mathematics_numerical_coercion(
616616
(_, Dictionary(_, value_type)) => {
617617
mathematics_numerical_coercion(lhs_type, value_type)
618618
}
619-
_ => comparison_binary_numeric_coercion(lhs_type, rhs_type),
619+
620+
// Dont match Decimal type
621+
(lhs_type, rhs_type)
622+
if (lhs_type.is_integer() || lhs_type.is_floating())
623+
&& (rhs_type.is_integer() || rhs_type.is_floating()) =>
624+
{
625+
comparison_binary_numeric_coercion(lhs_type, rhs_type)
626+
}
627+
_ => None,
620628
}
621629
}
622630

0 commit comments

Comments
 (0)