LucaCappelletti94 opened a new pull request, #2571: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2571
Twenty-four `CREATE` statements had an empty span, among them `CREATE FUNCTION`, `CREATE TYPE`, `CREATE SCHEMA`, `CREATE USER` and the Snowflake stage and warehouse forms. They now store their first and last token, set in `Parser::parse_statement` like the `DROP` statements. The last token skips an `EOF` or `;` that some of these parsers consume while looking for optional clauses. The span check skips its edge-token comparison for `CREATE FUNCTION`, `CREATE ROLE` and `CREATE OPERATOR CLASS`, whose renderings reorder or drop clauses. The span baseline loses 450 lines and gains none. Part of #1548. -- 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]
