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

Function normalize_ident

datafusion/sql/src/utils.rs:320–325  ·  view source on GitHub ↗

Normalize an owned identifier to a lowercase string, unless the identifier is quoted.

(id: Ident)

Source from the content-addressed store, hash-verified

318
319/// Normalize an owned identifier to a lowercase string, unless the identifier is quoted.
320pub(crate) fn normalize_ident(id: Ident) -> String {
321 match id.quote_style {
322 Some(_) => id.value,
323 None => id.value.to_ascii_lowercase(),
324 }
325}
326
327pub(crate) fn value_to_string(value: &Value) -> Option<String> {
328 match value {

Callers 5

normalizeMethod · 0.85
ident_to_stringFunction · 0.85
sql_function_to_exprMethod · 0.85
all_uniqueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…