You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesapache#1775.
Currently parse_session_options does not check for semicolons, which
makes it impossible to parse multiple statements, where a statement
comes after ALTER SESSION.
Furthermore, it seems we should not advance the parser onto the
semicolon as it is otherwise skipped in the next loop iteration
of parse_statements() where the parser advances to the next token,
which would then result in "Expected end of statement".
romanb
pushed a commit
to romanb/datafusion-sqlparser-rs
that referenced
this issue
Mar 31, 2025
Fixesapache#1775.
Currently parse_session_options does not check for semicolons, which
makes it impossible to parse multiple statements, where a statement
comes after ALTER SESSION.
Furthermore, it seems we should not advance the parser onto the
semicolon as it is otherwise skipped in the next loop iteration
of parse_statements() where the parser advances to the next token,
which would then result in "Expected end of statement".
It seems that Snowflake
ALTER SESSION
statements cannot currently be followed by other statements. For example:yields
The text was updated successfully, but these errors were encountered: