ramnes opened a new issue, #1833:
URL: https://github.com/apache/datafusion-sqlparser-rs/issues/1833

   Hey there, thanks for the great project!
   
   I'm encountering an issue with the following query, which is valid in 
Snowflake:
   
   ```sql
   SELECT v.$2 FROM (VALUES (1, 'value1'), (2, 'value2')) AS v
   ```
   
   It can't get parsed with sqlparser-rs:
   
   ```
   Expected: an identifier or a '*' after '.', found: $2 at Line: 1, Column: 10
   ```
   
   While this syntax isn't valid in PostgreSQL, it is accepted by Snowflake. 
Interestingly, `SELECT $2 FROM ...` (without the alias) parses correctly, so it 
seems the parser has trouble with positional parameters when they're part of 
compound expressions. 
   
   Is this a gap in the Snowflake dialect implementation?


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org
For additional commands, e-mail: github-h...@datafusion.apache.org

Reply via email to