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

Function array_slice

datafusion/functions-nested/src/extract.rs:281–287  ·  view source on GitHub ↗
(array: Expr, begin: Expr, end: Expr, stride: Option<Expr>)

Source from the content-addressed store, hash-verified

279
280#[doc = "returns a slice of the array."]
281pub fn array_slice(array: Expr, begin: Expr, end: Expr, stride: Option<Expr>) -> Expr {
282 let args = match stride {
283 Some(stride) => vec![array, begin, end, stride],
284 None => vec![array, begin, end],
285 };
286 array_slice_udf().call(args)
287}
288
289#[user_doc(
290 doc_section(label = "Array Functions"),

Callers 3

rangeMethod · 0.85
test_rangeFunction · 0.85
plan_field_accessMethod · 0.85

Calls 1

callMethod · 0.45

Tested by 1

test_rangeFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…