Skip to content

Commit

Permalink
fix a regression
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed May 23, 2024
1 parent 7f1951a commit c0f913b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/execution/datafusion/expressions/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -647,14 +647,16 @@ impl Cast {
| DataType::Float32
| DataType::Float64
),
DataType::Decimal128(_, _) => matches!(
DataType::Decimal128(_, _) | DataType::Decimal256(_, _) => matches!(
to_type,
DataType::Int8
| DataType::Int16
| DataType::Int32
| DataType::Int64
| DataType::Float32
| DataType::Float64
| DataType::Decimal128(_, _)
| DataType::Decimal256(_, _)
),
DataType::Utf8 => matches!(to_type, DataType::Binary),
DataType::Date32 => matches!(to_type, DataType::Utf8),
Expand Down

0 comments on commit c0f913b

Please sign in to comment.