LucaCappelletti94 opened a new pull request, #2821: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2821
`pg_get_functiondef` prints `COST` whenever a function's cost differs from its language default, and sqlparser could not read that back. For `pg_catalog.timestamptz(date, time without time zone)` PostgreSQL 18 prints `... STABLE PARALLEL SAFE STRICT COST 1 RETURN ...`, which failed with `Expected: end of statement, found: COST`. The PostgreSQL `CREATE FUNCTION` attribute loop now accepts [`COST execution_cost`](https://www.postgresql.org/docs/current/sql-createfunction.html) once, in any position among the other attributes, reads it the way `ALTER FUNCTION` already does, and stores it in a new `CreateFunction::cost` field. -- 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]
