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
gen_range in datafusion::physical_expr::array_expressions - Rust
[go: Go Back, main page]

pub fn gen_range(
    args: &[Arc<dyn Array>]
) -> Result<Arc<dyn Array>, DataFusionError>
Expand description

Generates an array of integers from start to stop with a given step.

This function takes 1 to 3 ArrayRefs as arguments, representing start, stop, and step values. It returns a Result<ArrayRef> representing the resulting ListArray after the operation.

§Arguments

  • args - An array of 1 to 3 ArrayRefs representing start, stop, and step(step value can not be zero.) values.

§Examples

gen_range(3) => [0, 1, 2] gen_range(1, 4) => [1, 2, 3] gen_range(1, 7, 2) => [1, 3, 5]