yussypu opened a new pull request, #3061: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3061
<!-- comma separated, or `none` --> Dialects: Redshift Closes #2959 `RedshiftSqlDialect` does not set `supports_nested_comments`, so a block comment ended at the first `*/`. `select 1 /* /* */ , ' */ , pg_backend_pid() -- '` parsed as `SELECT 1, ' */ , pg_backend_pid() -- '`, while Redshift returns two columns because the comment runs to the second `*/`. Redshift follows PostgreSQL here, which documents nested block comments: https://www.postgresql.org/docs/8.0/sql-syntax.html#SQL-SYNTAX-COMMENTS This enables `supports_nested_comments` for Redshift, with a test covering both forms from the issue and a fuzz seed. AI assistance: drafted with Claude. -- 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]
