LucaCappelletti94 opened a new pull request, #3023: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3023
As I am working on parsing pg_dumps of several different postgres versions, I have now encountered `ALTER TABLE d ALTER COLUMN x SET EXPRESSION AS (y + 2)`, which PostgreSQL 17 added to replace the expression of a generated column ([docs](https://www.postgresql.org/docs/current/sql-altertable.html)), failed with `Expected: SET/DROP NOT NULL, SET DEFAULT, SET DATA TYPE, ADD GENERATED, or OPTIONS after ALTER COLUMN, found: SET`. This PR adds `AlterColumnOperation::SetExpression`, next to the `DropExpression` from #2999. The parentheses are required, as in PostgreSQL's grammar, so `SET EXPRESSION AS y + 2` stays an error. -- 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]
