(haystack: ArrayRef, needle: ScalarValue)
| 405 | |
| 406 | #[inline] |
| 407 | fn 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] |
| 427 | fn create_args_n( |
no test coverage detected
searching dependent graphs…