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

Function str

datafusion/functions-aggregate/src/string_agg.rs:761–769  ·  view source on GitHub ↗
(value: ScalarValue)

Source from the content-addressed store, hash-verified

759 }
760
761 fn str(value: ScalarValue) -> Result<Option<String>> {
762 match value {
763 ScalarValue::LargeUtf8(v) => Ok(v),
764 _ => internal_err!(
765 "Expected ScalarValue::LargeUtf8, got {}",
766 value.data_type()
767 ),
768 }
769 }
770
771 fn data<const N: usize>(list: [&str; N]) -> ArrayRef {
772 Arc::new(LargeStringArray::from(list.to_vec()))

Callers 3

some_strFunction · 0.85
run_benchmarkFunction · 0.85
compareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected