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
feat: add to concat different data types error message the data types (#7166)
* feat: add to concat different data types error message the data types
* improve test, fix it and made the names to be in the order of appearance
* simplify
* change error message to only have up to 10 unique data types
and also change the data type order to appear in the same order as the arrays for easier debugging
* add tests for not printing all the data types
assert_eq!(re.unwrap_err().to_string(),"Invalid argument error: It is not possible to concatenate arrays of different data types (Int64, Utf8, Int32).");
assert_eq!(re.unwrap_err().to_string(),"Invalid argument error: It is not possible to concatenate arrays of different data types (Int64, Utf8, Int32, Int8, Int16, UInt8, UInt16, UInt32, UInt64, Float32).");
assert_eq!(re.unwrap_err().to_string(),"Invalid argument error: It is not possible to concatenate arrays of different data types (Int64, Utf8, Int32, Int8, Int16, UInt8, UInt16, UInt32, UInt64, Float32, ...).");
assert_eq!(re.unwrap_err().to_string(),"Invalid argument error: It is not possible to concatenate arrays of different data types (Int64, Utf8, Int32, Int8, Int16, UInt8, UInt16, UInt32, UInt64, Float32, ...).");
346
450
}
347
451
348
452
#[test]
@@ -924,7 +1028,7 @@ mod tests {
924
1028
.unwrap();
925
1029
926
1030
let error = concat_batches(&schema1,[&batch1,&batch2]).unwrap_err();
927
-
assert_eq!(error.to_string(),"Invalid argument error: It is not possible to concatenate arrays of different data types.");
1031
+
assert_eq!(error.to_string(),"Invalid argument error: It is not possible to concatenate arrays of different data types (Int32, Utf8).");
0 commit comments