Skip to content

Commit 493ce35

Browse files
committed
feat: Allow Decimal * Interval expression planning
1 parent 208a688 commit 493ce35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datafusion/physical-expr/src/coercion_rule/binary_rule.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,9 @@ pub fn interval_coercion(
622622
| (UInt16, Interval(itype))
623623
| (Interval(itype), UInt16)
624624
| (UInt8, Interval(itype))
625-
| (Interval(itype), UInt8) => Some(Interval(itype.clone())),
625+
| (Interval(itype), UInt8)
626+
| (Decimal(_, _), Interval(itype))
627+
| (Interval(itype), Decimal(_, _)) => Some(Interval(itype.clone())),
626628
_ => None,
627629
},
628630
_ => None,

0 commit comments

Comments
 (0)