LucaCappelletti94 opened a new pull request, #2536:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/2536

   Fixes a crash found by the roundtrip fuzzer where non-Snowflake dialects 
(such as PostgreSQL) accepted `@stage` in table factors, and Snowflake failed 
on comma-separated stages (`@stage, table2`) or semicolon-terminated stage 
queries (`SELECT * FROM @stage; SELECT 1`).
   
   - Added `Dialect::supports_stages(&self) -> bool` (default `false`, `true` 
for Snowflake) to gate stage table factor parsing.
   - Fixed `parse_stage_name_identifier` to properly recognize `,` and `;` 
delimiters without consuming them.
   - Validated that empty or bare `@` stage names return `Expected: stage name 
identifier`.


-- 
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]

Reply via email to