Skip to content

Commit 755e4a6

Browse files
compheadmcheshkov
authored andcommitted
Support type-coercion from Decimal to Float64 (apache#2396)
Can drop this after rebase on commit fe6190b "Support type-coercion from Decimal to Float64 (apache#2396)", first released in 8.0.0 (partially cherry picked from commit fe6190b)
1 parent 920f29a commit 755e4a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

datafusion/expr/src/type_coercion.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ pub fn can_coerce_from(type_into: &DataType, type_from: &DataType) -> bool {
182182
| UInt64
183183
| Float32
184184
| Float64
185+
| Decimal(_, _)
185186
),
186187
Timestamp(TimeUnit::Nanosecond, None) => {
187188
matches!(type_from, Null | Timestamp(_, None) | Date32)

0 commit comments

Comments
 (0)