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

   ### Search before asking
   
   - [x] I searched in the 
[issues](https://github.com/apache/paimon-rust/issues) and found nothing 
similar.
   
   
   ### Please describe the bug 🐞
   
   In `SQLContext`, a regular query can read a quoted table name containing 
spaces, but both `VERSION AS OF` and `TIMESTAMP AS OF` fail to resolve the same 
table.
   
   ```sql
   CREATE TABLE paimon.default."with space" (id INT);
   INSERT INTO paimon.default."with space" VALUES (8);
   
   SELECT id FROM paimon.default."with space";
   
   SELECT id FROM paimon.default."with space" VERSION AS OF 1;
   
   SELECT id FROM paimon.default."with space"
   TIMESTAMP AS OF '2099-01-01 00:00:00';
   ```
   
   - Expected: All three queries return `8` on a fresh table.
   
   - Actual: The regular query returns `8`. Both time-travel queries fail with 
`Table default.space" does not exist.`
   
   ### Solution
   
   Use the parsed table reference and time-travel clause to preserve the full 
quoted identifier. Add regression coverage for both VERSION AS OF and TIMESTAMP 
AS OF.
   
   ### Are you willing to submit a PR?
   
   - [ ] 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