alexMarian704 opened a new pull request, #3005:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3005
Dialects: PostgreSQL
PostgreSQL treats `AS` as optional in `CREATE DOMAIN`, but the parser
required it, so this failed:
CREATE DOMAIN d int4;
-- Expected: AS, found: int4
I added an `as_keyword` flag to `CreateDomain`, the same way
`ReplaceSelectElement` does it, so the statement prints back with or without
`AS`, as it was written. Tests cover the form without `AS` and check that a
missing data type is still rejected. I also added a fuzz seed.
Closes #2861
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]