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

Function create_args

datafusion/functions-nested/benches/array_remove.rs:407–424  ·  view source on GitHub ↗
(haystack: ArrayRef, needle: ScalarValue)

Source from the content-addressed store, hash-verified

405
406#[inline]
407fn create_args(haystack: ArrayRef, needle: ScalarValue) -> ScalarFunctionArgs {
408 let number_rows = haystack.len();
409 let haystack_type = haystack.data_type().clone();
410 let needle_type = needle.data_type().clone();
411 ScalarFunctionArgs {
412 args: vec![
413 ColumnarValue::Array(haystack),
414 ColumnarValue::Scalar(needle),
415 ],
416 arg_fields: vec![
417 Field::new("haystack", haystack_type.clone(), true).into(),
418 Field::new("needle", needle_type, true).into(),
419 ],
420 number_rows,
421 return_field: Field::new("result", haystack_type, true).into(),
422 config_options: Arc::new(ConfigOptions::default()),
423 }
424}
425
426#[inline]
427fn create_args_n(

Calls 5

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…