LucaCappelletti94 opened a new pull request, #2564: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2564
This PR adds `fuzz_duckdb_accepts`, a target that parses each input with a bundled DuckDB through `json_serialize_sql` and fails when DuckDB accepts a `SELECT` that `DuckDbDialect` rejects. Nothing is executed or bound. `json_serialize_sql` only serializes `SELECT` statements, so other statements are skipped rather than risk false reports. DuckDB's grammar also turns any unknown operator string, such as the trailing `&` in `SELECT 1 &`, into a call to a function that does not exist, so inputs calling an operator missing from DuckDB's function catalog are skipped too. Inputs the dialect accepts more liberally than DuckDB never fail. A 5-minute run found several distinct gaps. -- 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]
