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

   Parsing the following SQL
   ```sql
   INSERT INTO foo
     SELECT 1, 'data'
     ON CONFLICT DO NOTHING
   ```
   fails with
   ```
   Expected: end of statement, found: CONFLICT at Line: 3, Column: 6
   ```
   both for Generic and PostgreSQL dialects.
   
   However, at least in PostgreSQL it seems to be a valid construct, equivalent 
to
   ```sql
   INSERT INTO foo
     (SELECT 1, 'data')
     ON CONFLICT DO NOTHING
   ```
   (this one is parsed by `sqlparser` correctly).
   
   The same query without the "ON CONFLICT" clause can be successfully parsed 
too.


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