MohamedAbdeen21 commented on code in PR #2029: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2029#discussion_r2377054425
########## src/parser/mod.rs: ########## @@ -7118,6 +7123,13 @@ impl<'a> Parser<'a> { // parse it anyway (as we do inside `ALTER TABLE` and `CREATE TABLE` parsing). let index_options = self.parse_index_options()?; + if index_options + .iter() + .any(|opt| matches!(opt, IndexOption::Using(_))) + { + using = None; + }; + Review Comment: USING can be used in 3 different positions across the other dialects. This makes sure that only the latest USING is recognized. -- 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