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

Function scatter_empty

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

Source from the content-addressed store, hash-verified

525
526 #[test]
527 fn scatter_empty() -> Result<()> {
528 let truthy = Arc::new(Int32Array::from(Vec::<i32>::new()));
529 let mask = BooleanArray::from(Vec::<bool>::new());
530
531 let result = scatter(&mask, truthy.as_ref())?;
532 assert_eq!(result.len(), 0);
533 Ok(())
534 }
535
536 #[test]
537 fn scatter_primitive_with_source_nulls() -> Result<()> {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
scatterFunction · 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…