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

Method format_string

datafusion/spark/src/function/string/format_string.rs:2043–2050  ·  view source on GitHub ↗
(&self, writer: &mut String, value: &str)

Source from the content-addressed store, hash-verified

2041 }
2042
2043 fn format_string(&self, writer: &mut String, value: &str) -> Result<()> {
2044 if self.conversion_type.is_upper() {
2045 let upper = value.to_ascii_uppercase();
2046 self.format_str(writer, &upper)
2047 } else {
2048 self.format_str(writer, value)
2049 }
2050 }
2051
2052 fn format_decimal(&self, writer: &mut String, value: &str, scale: i64) -> Result<()> {
2053 self.validate_grouping_separator()?;

Callers 1

formatMethod · 0.80

Calls 2

is_upperMethod · 0.80
format_strMethod · 0.80

Tested by

no test coverage detected