From c0f913b91b74eb97d1e63a52d44b8e53073c2ac7 Mon Sep 17 00:00:00 2001 From: Andy Grove Date: Thu, 23 May 2024 15:31:06 -0600 Subject: [PATCH] fix a regression --- core/src/execution/datafusion/expressions/cast.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/execution/datafusion/expressions/cast.rs b/core/src/execution/datafusion/expressions/cast.rs index 883544481..3d58c821e 100644 --- a/core/src/execution/datafusion/expressions/cast.rs +++ b/core/src/execution/datafusion/expressions/cast.rs @@ -647,7 +647,7 @@ impl Cast { | DataType::Float32 | DataType::Float64 ), - DataType::Decimal128(_, _) => matches!( + DataType::Decimal128(_, _) | DataType::Decimal256(_, _) => matches!( to_type, DataType::Int8 | DataType::Int16 @@ -655,6 +655,8 @@ impl Cast { | DataType::Int64 | DataType::Float32 | DataType::Float64 + | DataType::Decimal128(_, _) + | DataType::Decimal256(_, _) ), DataType::Utf8 => matches!(to_type, DataType::Binary), DataType::Date32 => matches!(to_type, DataType::Utf8),