alexMarian704 opened a new pull request, #3032:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3032
Dialects: PostgreSQL
PostgreSQL supports changing a column's storage mode, but the parser
rejected it:
ALTER TABLE t ALTER COLUMN b SET STORAGE EXTERNAL;
-- Expected: SET/DROP NOT NULL, SET DEFAULT, SET DATA TYPE, ADD
GENERATED, or OPTIONS after ALTER COLUMN, found: SET
I added `AlterColumnOperation::SetStorage`, reusing the existing
`UserDefinedTypeStorage` enum from `CREATE TYPE`. I moved the value parsing
into a small helper shared by both statements. Values print in lowercase, the
same as `CREATE TYPE ... STORAGE = plain`. PostgreSQL 16's `SET STORAGE
DEFAULT` is not covered.
Closes #2875
AI-assisted review.
--
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]