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

Function invoke_array_sort

datafusion/functions-nested/benches/array_sort.rs:121–130  ·  view source on GitHub ↗
(udf: &ArraySort, array: &ArrayRef)

Source from the content-addressed store, hash-verified

119}
120
121fn invoke_array_sort(udf: &ArraySort, array: &ArrayRef) -> ColumnarValue {
122 udf.invoke_with_args(ScalarFunctionArgs {
123 args: vec![ColumnarValue::Array(Arc::clone(array))],
124 arg_fields: vec![Field::new("arr", array.data_type().clone(), true).into()],
125 number_rows: array.len(),
126 return_field: Field::new("result", array.data_type().clone(), true).into(),
127 config_options: Arc::new(ConfigOptions::default()),
128 })
129 .unwrap()
130}
131
132/// Vary elements_per_row over [5, 20, 100, 1000]: for small arrays, per-row
133/// overhead dominates, whereas for larger arrays the sort kernel dominates.

Callers 1

bench_array_sortFunction · 0.85

Calls 6

newFunction · 0.85
invoke_with_argsMethod · 0.45
lenMethod · 0.45
intoMethod · 0.45
cloneMethod · 0.45
data_typeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…