We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6630ec2 commit 5f35007Copy full SHA for 5f35007
native/spark-expr/src/conversion_funcs/cast.rs
@@ -1265,13 +1265,7 @@ fn is_datafusion_spark_compatible(
1265
| DataType::Decimal256(_, _)
1266
| DataType::Utf8 // note that there can be formatting differences
1267
),
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
- ),
+ DataType::Utf8 => matches!(to_type, DataType::Binary),
1275
DataType::Date32 => matches!(to_type, DataType::Utf8),
1276
DataType::Timestamp(_, _) => {
1277
matches!(
0 commit comments