Skip to content

Commit 0f3764a

Browse files
author
Bhargava Vadlamani
committed
integral_types_decimal_cast_native_support
1 parent 0301bab commit 0f3764a

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

  • native/spark-expr/src/conversion_funcs

native/spark-expr/src/conversion_funcs/cast.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,23 +1147,6 @@ fn is_datafusion_spark_compatible(
11471147
| DataType::Float64
11481148
| DataType::Utf8
11491149
),
1150-
DataType::Int8 | DataType::Int16 | DataType::Int32 | DataType::Int64 => {
1151-
// note that the cast from Int32/Int64 -> Decimal128 here is actually
1152-
// not compatible with Spark (no overflow checks) but we have tests that
1153-
// rely on this cast working, so we have to leave it here for now
1154-
matches!(
1155-
to_type,
1156-
DataType::Boolean
1157-
| DataType::Int8
1158-
| DataType::Int16
1159-
| DataType::Int32
1160-
| DataType::Int64
1161-
| DataType::Float32
1162-
| DataType::Float64
1163-
| DataType::Decimal128(_, _)
1164-
| DataType::Utf8
1165-
)
1166-
}
11671150
DataType::Float32 | DataType::Float64 => matches!(
11681151
to_type,
11691152
DataType::Boolean

0 commit comments

Comments
 (0)