MCPcopy Create free account
hub / github.com/apache/arrow-rs / length_null_large_string

Function length_null_large_string

arrow-string/src/length.rs:369–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

367
368 #[test]
369 fn length_null_large_string() {
370 length_null_cases_string()
371 .into_iter()
372 .for_each(|(input, len, expected)| {
373 let array = LargeStringArray::from(input);
374 let result = length(&array).unwrap();
375 assert_eq!(len, result.len());
376 let result = result.as_any().downcast_ref::<Int64Array>().unwrap();
377
378 // convert to i64
379 let expected: Int64Array = expected
380 .iter()
381 .map(|e| e.map(|e| e as i64))
382 .collect::<Vec<_>>()
383 .into();
384 assert_eq!(&expected, result);
385 })
386 }
387
388 #[test]
389 fn length_null_binary() {

Callers

nothing calls this directly

Calls 5

length_null_cases_stringFunction · 0.85
lengthFunction · 0.85
into_iterMethod · 0.45
as_anyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected