(args: &[ArrayRef])
| 474 | } |
| 475 | |
| 476 | fn array_positions_inner(args: &[ArrayRef]) -> Result<ArrayRef> { |
| 477 | let [haystack, needle] = take_function_args("array_positions", args)?; |
| 478 | |
| 479 | match &haystack.data_type() { |
| 480 | List(_) => general_positions::<i32>(as_list_array(&haystack)?, needle), |
| 481 | LargeList(_) => general_positions::<i64>(as_large_list_array(&haystack)?, needle), |
| 482 | dt => exec_err!("array_positions does not support type '{dt}'"), |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | fn general_positions<O: OffsetSizeTrait>( |
| 487 | haystack: &GenericListArray<O>, |
nothing calls this directly
no test coverage detected
searching dependent graphs…