Skip to content

Commit

Permalink
remove cast int32/int64 -> decimal from datafusion compatible list
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed May 25, 2024
1 parent bc18fae commit 340e000
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion core/src/execution/datafusion/expressions/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ impl Cast {
| DataType::Float64
| DataType::Utf8
),
DataType::Int8 | DataType::Int16 | DataType::Int32 | DataType::Int64 => matches!(
DataType::Int8 | DataType::Int16 => matches!(
to_type,
DataType::Boolean
| DataType::Int8
Expand All @@ -637,6 +637,17 @@ impl Cast {
| DataType::Decimal128(_, _)
| DataType::Utf8
),
DataType::Int32 | DataType::Int64 => matches!(
to_type,
DataType::Boolean
| DataType::Int8
| DataType::Int16
| DataType::Int32
| DataType::Int64
| DataType::Float32
| DataType::Float64
| DataType::Utf8
),
DataType::Float32 | DataType::Float64 => matches!(
to_type,
DataType::Boolean
Expand Down

0 comments on commit 340e000

Please sign in to comment.