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

   This is a followup on 
https://github.com/apache/datafusion-sqlparser-rs/pull/1847
   
   Here are some constructs that are currently not handled by the pretty 
printer (they are displayed on a single line). I'm opening this to serve as a 
tracking issue to track implementation of these. 
   
   * [ ] Format `INSERT INTO` with both `VALUES` and `SELECT` forms
   * [ ] Support `UPDATE` and `DELETE` with proper clause indentation
   * [ ] indent `CREATE TABLE` column definitions and constraints
   * [ ] Format `CREATE VIEW` and nested `SELECT` cleanly
   * [ ] Handle `CREATE FUNCTION`/`PROCEDURE` blocks with inner SQL formatting
   * [ ] format `json_table` and `xmltable`
   * [ ] Format `BEGIN`, `COMMIT`, `ROLLBACK` blocks clearly
   * [ ] Support control flow structures (`IF`, `WHILE`, `LOOP`) with block 
indentation
   * [ ] support multiline strings (the indentation should not be reflected 
inside the string)
   * [ ] Handle `MERGE` statements with `WHEN MATCHED` and `WHEN NOT MATCHED` 
branches
   * [ ] format `CREATE INDEX` with minimal structure
   * [ ] Handle `EXPLAIN`, `EXPLAIN ANALYZE`, and `DESCRIBE` statements
   


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