Skip to content

Conversation

Vedin
Copy link

@Vedin Vedin commented Sep 24, 2025

No description provided.

@Vedin Vedin requested a review from osipovartem September 24, 2025 11:36
@Vedin Vedin force-pushed the add-begin-standalone branch from 344ebb9 to 4f56f81 Compare September 24, 2025 11:37
pub fn parse_begin_exception_end(&mut self) -> Result<Statement, ParserError> {
// Snowflake allows BEGIN as a standalone transaction statement (no END).
// If the next token is a semicolon or EOF, treat it as a standalone BEGIN.
if dialect_of!(self is SnowflakeDialect) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe better to add this directly to snowflake parser
https://github.com/Embucket/datafusion-sqlparser-rs/blob/embucket-sync-df50.0.0-parser0.58.0/src/dialect/snowflake.rs#L134-L136
since this logic will be called before default parser

@Vedin Vedin force-pushed the add-begin-standalone branch from 2e15b90 to 30dacd3 Compare September 24, 2025 12:05
@Vedin Vedin force-pushed the add-begin-standalone branch from 30dacd3 to bc002e4 Compare September 24, 2025 12:06
@Vedin Vedin merged commit 2801207 into embucket-sync-df50.0.0-parser0.58.0 Sep 24, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants