(udf: &ArraySort, array: &ArrayRef)
| 119 | } |
| 120 | |
| 121 | fn 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. |
no test coverage detected
searching dependent graphs…