Function datafusion_sql::planner::object_name_to_table_reference
source · pub fn object_name_to_table_reference(
object_name: ObjectName,
enable_normalization: bool
) -> Result<OwnedTableReference>
Expand description
Create a OwnedTableReference
after normalizing the specified ObjectName
Examples
['foo'] -> Bare { table: "foo" }
['"foo.bar"]] -> Bare { table: "foo.bar" }
['foo', 'Bar'] -> Partial { schema: "foo", table: "bar" } <-- note lower case "bar"
['foo', 'bar'] -> Partial { schema: "foo", table: "bar" }
['foo', '"Bar"'] -> Partial { schema: "foo", table: "Bar" }