askalt opened a new pull request, #19927: URL: https://github.com/apache/datafusion/pull/19927
## Rationale for this change In our project we support multi-statement SQL with DF statements. If we use `next_token(...)` then in the case of multi-statement query it consumes a semicolon token which leads to the parse error on the correct queries like: ```sql CREATE EXTERNAL TABLE t1 ...; CREATE EXTERNAL TABLE t2 ...; ``` This patch fixes this behavior switching `next_token(...)` to `peek_token(...)` to test on EOF. ## Are these changes tested? There is a unit test covering multi-statement SQL. -- 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]
