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

Function test_iterator_nulls

arrow-array/src/array/dictionary_array.rs:1474–1487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1472
1473 #[test]
1474 fn test_iterator_nulls() {
1475 let keys = Int32Array::new(
1476 vec![0, 700, 1, 2].into(),
1477 Some(NullBuffer::from(vec![true, false, true, true])),
1478 );
1479 let values = Int32Array::from(vec![Some(50), None, Some(2)]);
1480 let dict = DictionaryArray::new(keys, Arc::new(values));
1481 let values: Vec<_> = dict
1482 .downcast_dict::<Int32Array>()
1483 .unwrap()
1484 .into_iter()
1485 .collect();
1486 assert_eq!(values, &[Some(50), None, None, Some(2)])
1487 }
1488
1489 #[test]
1490 fn test_logical_nulls() -> Result<(), ArrowError> {

Callers

nothing calls this directly

Calls 2

collectMethod · 0.80
into_iterMethod · 0.45

Tested by

no test coverage detected