fmguerreiro opened a new pull request, #2313:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2313
## Summary
- **CREATE STATISTICS** (pgmold-103): parses `CREATE STATISTICS [IF NOT
EXISTS] name [(ndistinct, dependencies, mcv)] ON expr, ... FROM table`. Kinds
are optional; expression list accepts any expression, though in practice bare
column references are the common case.
- **CREATE ACCESS METHOD** (pgmold-104): parses `CREATE ACCESS METHOD name
TYPE INDEX | TABLE HANDLER handler_function`.
- **CREATE EVENT TRIGGER** (pgmold-105): parses `CREATE EVENT TRIGGER name
ON event [WHEN TAG IN ('tag', ...)] EXECUTE FUNCTION | PROCEDURE name()`.
Supports all four event names (`ddl_command_start`, `ddl_command_end`,
`table_rewrite`, `sql_drop`) and the `PROCEDURE` alias.
- **CREATE TRANSFORM** (pgmold-106): parses `CREATE [OR REPLACE] TRANSFORM
FOR type LANGUAGE lang (FROM SQL WITH FUNCTION f(...), TO SQL WITH FUNCTION
f(...))`. `OR REPLACE` is supported; both FROM and TO elements are optional in
the grammar.
## New keyword
`TRANSFORM` added to `keywords.rs` alphabetically.
## Notes
- Fork CI does not auto-run on this branch.
- `verified_stmt` round-trip tests included for each variant (2–3 per
statement).
--
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]