Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
scatter in datafusion::physical_expr_common::utils - Rust
[go: Go Back, main page]

Function scatter

Source
pub fn scatter(
    mask: &BooleanArray,
    truthy: &dyn Array,
) -> Result<Arc<dyn Array>, DataFusionError>
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 the truthy values
  • truthy - All values of this array are to scatter according to mask into final result.