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

Function soundex_view

datafusion/spark/src/function/string/soundex.rs:91–98  ·  view source on GitHub ↗
(str_view: &ArrayRef)

Source from the content-addressed store, hash-verified

89}
90
91fn soundex_view(str_view: &ArrayRef) -> Result<ArrayRef> {
92 let str_array = as_string_view_array(str_view)?;
93 let result = str_array
94 .iter()
95 .map(|opt_str| opt_str.map(compute_soundex))
96 .collect::<StringArray>();
97 Ok(Arc::new(result) as ArrayRef)
98}
99
100fn classify_char(c: char) -> Option<char> {
101 match c.to_ascii_uppercase() {

Callers 1

spark_soundex_innerFunction · 0.85

Calls 4

as_string_view_arrayFunction · 0.85
newFunction · 0.85
mapMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…