Skip to content

Commit 5f35007

Browse files
committed
address_review_comments
1 parent 6630ec2 commit 5f35007

File tree

1 file changed

+1
-7
lines changed
  • native/spark-expr/src/conversion_funcs

1 file changed

+1
-7
lines changed

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,13 +1265,7 @@ fn is_datafusion_spark_compatible(
12651265
| DataType::Decimal256(_, _)
12661266
| DataType::Utf8 // note that there can be formatting differences
12671267
),
1268-
DataType::Utf8 if allow_incompat => {
1269-
matches!(to_type, DataType::Binary | DataType::Decimal128(_, _))
1270-
}
1271-
DataType::Utf8 => matches!(
1272-
to_type,
1273-
DataType::Binary | DataType::Float32 | DataType::Float64
1274-
),
1268+
DataType::Utf8 => matches!(to_type, DataType::Binary),
12751269
DataType::Date32 => matches!(to_type, DataType::Utf8),
12761270
DataType::Timestamp(_, _) => {
12771271
matches!(

0 commit comments

Comments
 (0)