You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r#"Casting from Map(Field { "entries": Struct(key Utf8, value nullable Utf8) }, false) to Map(Field { "entries": Struct(key Utf8, value Utf8) }, true) not supported"#
8605
8609
);
8606
8610
}
8607
8611
@@ -8647,8 +8651,12 @@ mod tests {
8647
8651
8648
8652
let new_array_result = cast(&array,&new_type.clone());
r#"Casting from Map(Field { "entries": Struct(key Utf8, value nullable Interval(DayTime)) }, false) to Map(Field { "entries": Struct(key Utf8, value Duration(Second)) }, true) not supported"#
8652
8660
);
8653
8661
}
8654
8662
@@ -10740,7 +10748,7 @@ mod tests {
10740
10748
let to_type = DataType::Utf8;
10741
10749
let result = cast(&struct_array,&to_type);
10742
10750
assert_eq!(
10743
-
r#"Cast error: Casting from Struct([Field { name: "a", data_type: Boolean, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }]) to Utf8 not supported"#,
10751
+
r#"Cast error: Casting from Struct(a Boolean) to Utf8 not supported"#,
10744
10752
result.unwrap_err().to_string()
10745
10753
);
10746
10754
}
@@ -10751,7 +10759,7 @@ mod tests {
10751
10759
let to_type = DataType::Struct(vec![Field::new("a",DataType::Boolean,false)].into());
10752
10760
let result = cast(&array,&to_type);
10753
10761
assert_eq!(
10754
-
r#"Cast error: Casting from Utf8 to Struct([Field { name: "a", data_type: Boolean, nullable: false, dict_id: 0, dict_is_ordered: false, metadata: {} }]) not supported"#,
10762
+
r#"Cast error: Casting from Utf8 to Struct(a Boolean) not supported"#,
0 commit comments