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

Function scatter_all_false

datafusion/physical-expr-common/src/utils.rs:515–524  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

513
514 #[test]
515 fn scatter_all_false() -> Result<()> {
516 let truthy = Arc::new(Int32Array::from(Vec::<i32>::new()));
517 let mask = BooleanArray::from(vec![false, false, false]);
518
519 let result = scatter(&mask, truthy.as_ref())?;
520 let result = as_int32_array(&result)?;
521 let expected = Int32Array::from(vec![None, None, None]);
522 assert_eq!(&expected, result);
523 Ok(())
524 }
525
526 #[test]
527 fn scatter_empty() -> Result<()> {

Callers

nothing calls this directly

Calls 4

newFunction · 0.85
scatterFunction · 0.85
as_int32_arrayFunction · 0.85
as_refMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…