From cf29029420a78eee154de861ca7e313e56d9dd34 Mon Sep 17 00:00:00 2001 From: Max Burke Date: Wed, 19 Jun 2024 20:42:25 -0700 Subject: [PATCH] Allow coercion between timestamp and int64 types --- datafusion/expr/src/type_coercion/binary.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/datafusion/expr/src/type_coercion/binary.rs b/datafusion/expr/src/type_coercion/binary.rs index 615bb3ac568c..42ffce749693 100644 --- a/datafusion/expr/src/type_coercion/binary.rs +++ b/datafusion/expr/src/type_coercion/binary.rs @@ -1084,6 +1084,8 @@ fn temporal_coercion(lhs_type: &DataType, rhs_type: &DataType) -> Option Some(lhs_type.clone()), + (Int64, Timestamp(_, _)) => Some(rhs_type.clone()), _ => None, } }