From 06dcd5fa359ea0537c09d9ab9915376feee19963 Mon Sep 17 00:00:00 2001 From: Alex Qyoun-ae <4062971+MazterQyou@users.noreply.github.com> Date: Mon, 8 Jan 2024 00:26:40 +0400 Subject: [PATCH] feat: Allow `Decimal * Interval` expression planning --- datafusion/physical-expr/src/coercion_rule/binary_rule.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/datafusion/physical-expr/src/coercion_rule/binary_rule.rs b/datafusion/physical-expr/src/coercion_rule/binary_rule.rs index 5663677d2579..a84ba877cf37 100644 --- a/datafusion/physical-expr/src/coercion_rule/binary_rule.rs +++ b/datafusion/physical-expr/src/coercion_rule/binary_rule.rs @@ -622,7 +622,9 @@ pub fn interval_coercion( | (UInt16, Interval(itype)) | (Interval(itype), UInt16) | (UInt8, Interval(itype)) - | (Interval(itype), UInt8) => Some(Interval(itype.clone())), + | (Interval(itype), UInt8) + | (Decimal(_, _), Interval(itype)) + | (Interval(itype), Decimal(_, _)) => Some(Interval(itype.clone())), _ => None, }, _ => None,