alamb opened a new issue, #4532:
URL: https://github.com/apache/arrow-datafusion/issues/4532

   **Describe the bug**
   Some DataFusion APIs take a string and convert to a table name but do not 
parse the identifiers correctly (specifically they ignore case normalization 
and quotes
   
   **To Reproduce**
   Register a table with
   
   
https://docs.rs/datafusion/15.0.0/datafusion/execution/context/struct.SessionContext.html#method.register_table
   
   
   ```rust
   ctx.register_table("\"foo.bar\"", t);
   ```
    registers a table `bar` in schema `foo`
   
   Likewise 
   
   ```rust
   ctx.register_table("\"Bar\"", t);
   ```
   registers a table named `Bar`
   
   In SQL
   * `CREATE TABLE "foo.bar"` registers a table `foo.bar`
   * `CREATE TABLE Bar...` registers a table `bar` 
   
   **Expected behavior**
   The table should be registered parsed as a name `foo.bar` 
   
   **Additional context**
   Found while working on https://github.com/apache/arrow-datafusion/pull/4530
   


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