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

Function spark_soundex_inner

datafusion/spark/src/function/string/soundex.rs:70–80  ·  view source on GitHub ↗
(arg: &[ArrayRef])

Source from the content-addressed store, hash-verified

68}
69
70fn 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
82fn soundex_array<T: OffsetSizeTrait>(array: &ArrayRef) -> Result<ArrayRef> {
83 let str_array = as_generic_string_array::<T>(array)?;

Callers

nothing calls this directly

Calls 3

take_function_argsFunction · 0.85
soundex_viewFunction · 0.85
data_typeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…