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

   **Dialect**: PostgreSQL
   
   **Statement**
   
   ```sql
   SELECT;
   ```
   
   **Current behavior**: `supports_empty_projections` only permits an empty 
projection when a `FROM` clause follows, so a bare `SELECT;` is a syntax error. 
PG accepts it.
   
   **Expected AST**: `Select { projection: [], from: [] }`.
   
   **0.63.0 anchor**: `mod.rs:15257-15262`
   
   **pg_regress coverage**: `select (regression); PG's own grammar allows the 
empty target list`
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to