lei-jia-xing commented on PR #3040: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3040#issuecomment-7150349324
Added fuzz/fuzz_seeds/postgres_create_statistics.sql, rebased onto main, and ran fuzz_postgres_accepts (pg_query 170007). Fixed two gaps against PostgreSQL's gram.y https://github.com/postgres/postgres/blob/REL_17_7/src/backend/parser/gram.y#L4593-L4645: - Allow CAST, EXTRACT, SUBSTRING, TRIM, POSITION, OVERLAY, CEIL, and FLOOR—valid under func_expr_windowless (docs https://www.postgresql.org/docs/current/sql-createindex.html), parsed as dedicated Expr variants rather than Expr::Function. - Changed CreateStatistics::table (ObjectName) to from: Vec<TableWithJoins> because gram.y uses from_list (aliases, ONLY/*, joins, subqueries), which fuzz_postgres_accepts flagged on FROM ... alias. -- 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]
