aharpervc commented on code in PR #1831: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1831#discussion_r2067470750
########## src/parser/mod.rs: ########## @@ -4453,6 +4487,9 @@ impl<'a> Parser<'a> { break; } } + if let Token::EOF = self.peek_nth_token_ref(0).token { + break; + } Review Comment: Done 👍. I was probably trying to minimize the diff for review here -- 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 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