yjshen commented on code in PR #2267:
URL: https://github.com/apache/arrow-datafusion/pull/2267#discussion_r852547585


##########
datafusion/core/src/sql/planner.rs:
##########
@@ -638,7 +638,8 @@ impl<'a, S: ContextProvider> SqlToRel<'a, S> {
             TableFactor::Table {
                 ref name, alias, ..
             } => {
-                let table_name = name.to_string();
+                // Trim quoted table name: "db_name" -> db_name
+                let table_name = 
name.to_string().trim_matches('\"').to_string();

Review Comment:
   Agree we should do this during SQL parsing, returning a unified pattern of 
table names with qualifiers.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to