LucaCappelletti94 opened a new pull request, #2855: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2855
`CREATE TABLE copy (LIKE src INCLUDING COMMENTS)` and `CREATE TABLE copy (LIKE src INCLUDING ALL EXCLUDING INDEXES)` failed with `Expected: ), found: INCLUDING`, because the parser read at most one option after `LIKE` and only `DEFAULTS`. PostgreSQL confusingly accepts any number of [`INCLUDING` and `EXCLUDING` options](https://www.postgresql.org/docs/current/sql-createtable.html) and applies them in order, so a later option overrides an earlier one. `CreateTableLike` now keeps `options: Vec<CreateTableLikeOption>` in the order written, each an `Including` or `Excluding` of a `CreateTableLikeProperty`. This replaces the `defaults` field and the `CreateTableLikeDefaults` enum. -- 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]
