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

Function object_name_to_string

datafusion/sql/src/statement.rs:76–89  ·  view source on GitHub ↗
(object_name: &ObjectName)

Source from the content-addressed store, hash-verified

74}
75
76fn object_name_to_string(object_name: &ObjectName) -> String {
77 object_name
78 .0
79 .iter()
80 .map(|object_name_part| {
81 object_name_part
82 .as_ident()
83 // TODO: It might be better to return an error
84 // than to silently use a default value.
85 .map_or_else(String::new, ident_to_string)
86 })
87 .collect::<Vec<String>>()
88 .join(".")
89}
90
91fn get_schema_name(schema_name: &SchemaName) -> String {
92 match schema_name {

Callers 6

get_schema_nameFunction · 0.85
copy_to_planMethod · 0.85
show_variable_to_planMethod · 0.85
set_statement_to_planMethod · 0.85

Calls 4

as_identMethod · 0.80
joinMethod · 0.45
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…