LucaCappelletti94 commented on PR #1707: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1707#issuecomment-2681526937
I have tried to replace the parsing of keywords with the generic String Ident as proposed, but it leads to much more complex parsing. Primarily, I don't understand how I could distinguish an operator class from a keyword, such as: `CREATE UNIQUE INDEX IF NOT EXISTS idx_name ON test USING BTREE (name gin_trgm_ops,age DESC)`, specifically how can you tell that `gin_trgm_ops` is to be parsed as an operator class and `DESC` should instead be a keyword? Should I try to parse it as a keyword, and it it fails I assume it is an operator class? -- 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