Function datafusion_physical_expr::utils::scatter
source · pub fn scatter(mask: &BooleanArray, truthy: &dyn Array) -> Result<ArrayRef>
Expand description
Scatter truthy
array by boolean mask. When the mask evaluates true
, next values of truthy
are taken, when the mask evaluates false
values null values are filled.
Arguments
mask
- Boolean values used to determine where to put thetruthy
valuestruthy
- All values of this array are to scatter according tomask
into final result.