waitingkuo commented on issue #4513:
URL: 
https://github.com/apache/arrow-datafusion/issues/4513#issuecomment-1339676181

   hi @alamb 
   
   i tried to add this
   ```rust
           if s.len() >= 2 && s.chars().nth(0) == Some('"') && s.chars().last() 
== Some('"') {
               return Self::Bare {table: s}
           }
   ```
   to return the whole double quoted string before `let parts: Vec<&str> = 
s.split('.').collect();`
   
   and it works while creating a new table
   ```bash
   ❯ create table "foo.bar" as values (1), (2);
   0 rows in set. Query took 0.001 seconds.
   
   ❯ show tables;
   +---------------+--------------------+-------------+------------+
   | table_catalog | table_schema       | table_name  | table_type |
   +---------------+--------------------+-------------+------------+
   | datafusion    | public             | "foo.bar"   | BASE TABLE |
   | datafusion    | public             | "foo.aa"    | BASE TABLE |
   | datafusion    | information_schema | tables      | VIEW       |
   | datafusion    | information_schema | views       | VIEW       |
   | datafusion    | information_schema | columns     | VIEW       |
   | datafusion    | information_schema | df_settings | VIEW       |
   +---------------+--------------------+-------------+------------+
   6 rows in set. Query took 0.003 seconds.
   ```
   
   but failed to select it
   
   ```bash
   ❯ select * from "foo.bar";
   Plan("failed to resolve schema: foo")
   ```


-- 
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