(arg: &[ArrayRef])
| 68 | } |
| 69 | |
| 70 | fn spark_soundex_inner(arg: &[ArrayRef]) -> Result<ArrayRef> { |
| 71 | let [array] = take_function_args("soundex", arg)?; |
| 72 | match &array.data_type() { |
| 73 | DataType::Utf8 => soundex_array::<i32>(array), |
| 74 | DataType::LargeUtf8 => soundex_array::<i64>(array), |
| 75 | DataType::Utf8View => soundex_view(array), |
| 76 | other => { |
| 77 | exec_err!("unsupported data type {other:?} for function `soundex`") |
| 78 | } |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | fn soundex_array<T: OffsetSizeTrait>(array: &ArrayRef) -> Result<ArrayRef> { |
| 83 | let str_array = as_generic_string_array::<T>(array)?; |
nothing calls this directly
no test coverage detected
searching dependent graphs…