MCPcopy Create free account
hub / github.com/apache/datafusion / test_eq_array_err_message

Function test_eq_array_err_message

datafusion/common/src/scalar/mod.rs:6423–6431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6421
6422 #[test]
6423 fn test_eq_array_err_message() {
6424 assert_starts_with(
6425 ScalarValue::Utf8(Some("123".to_string()))
6426 .eq_array(&(Arc::new(Int32Array::from(vec![123])) as ArrayRef), 0)
6427 .unwrap_err()
6428 .message(),
6429 "could not cast array of type Int32 to arrow_array::array::byte_array::GenericByteArray<arrow_array::types::GenericStringType<i32>>",
6430 );
6431 }
6432
6433 #[test]
6434 fn scalar_add_trait_test() -> Result<()> {

Callers

nothing calls this directly

Calls 6

newFunction · 0.85
messageMethod · 0.80
unwrap_errMethod · 0.80
eq_arrayMethod · 0.80
assert_starts_withFunction · 0.70
to_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…