slfan1989 opened a new issue, #1332:
URL: https://github.com/apache/paimon-rust/issues/1332

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/paimon-rust/issues) and found nothing 
similar.
   
   
   ### Please describe the bug 🐞
   
   ### Describe the bug 
   
   CREATE TEMPORARY VIEW loses identifier information when registering the 
view. Quoted mixed-case names are converted to lowercase, and names containing 
dots, spaces, or embedded double quotes cannot be resolved correctly.
   
   ### Reproduction
   
   ```sql
   CREATE TEMPORARY VIEW default."MixedView" AS SELECT 1 AS id;
   
   SELECT * FROM default."MixedView"; -- Fails: table not found
   SELECT * FROM default.mixedview;   -- Unexpectedly succeeds
   ```
   
   ### Expected behavior
   
   Preserve quoted view names during registration and IF NOT EXISTS checks, so 
the view can be queried using its declared name.
   
   ### Solution
   
   Reuse DataFusion's parsed TableReference instead of reconstructing and 
reparsing the name as a string.
   
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


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