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

Function scatter_all_true

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

Source from the content-addressed store, hash-verified

502
503 #[test]
504 fn scatter_all_true() -> Result<()> {
505 let truthy = Arc::new(Int32Array::from(vec![1, 2, 3]));
506 let mask = BooleanArray::from(vec![true, true, true]);
507
508 let result = scatter(&mask, truthy.as_ref())?;
509 let result = as_int32_array(&result)?;
510 assert_eq!(&Int32Array::from(vec![1, 2, 3]), result);
511 Ok(())
512 }
513
514 #[test]
515 fn scatter_all_false() -> 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…