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

Function test_nullable_array_is_not_null

arrow-arith/src/boolean.rs:854–863  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

852
853 #[test]
854 fn test_nullable_array_is_not_null() {
855 let a = Int32Array::from(vec![Some(1), None, Some(3), None]);
856
857 let res = is_not_null(&a).unwrap();
858
859 let expected = BooleanArray::from(vec![true, false, true, false]);
860
861 assert_eq!(expected, res);
862 assert!(res.nulls().is_none());
863 }
864
865 #[test]
866 fn test_nullable_array_with_offset_is_not_null() {

Callers

nothing calls this directly

Calls 1

is_not_nullFunction · 0.85

Tested by

no test coverage detected