Skip to content

Specify dialect as 'snowflake' in SQL parsing#179

Open
arborluke wants to merge 1 commit intoSnowflake-Labs:mainfrom
arborluke:patch-1
Open

Specify dialect as 'snowflake' in SQL parsing#179
arborluke wants to merge 1 commit intoSnowflake-Labs:mainfrom
arborluke:patch-1

Conversation

@arborluke
Copy link
Copy Markdown

@arborluke arborluke commented Mar 26, 2026

USE SECONDARY ROLE NONE is being returned by sqlglot as Unknown when its a valid Snowflake Use statement.

Statement type of Unknown is not allowed. Please review sql statement permissions in configuration file

If I run node = sqlglot.parse_one('USE SECONDARY ROLES NONE');print(type(node).__name__) it returns Unknown.

If I run node = sqlglot.parse_one('USE SECONDARY ROLES NONE', dialect='snowflake');print(type(node).__name__) it returns Use.

USE SECONDARY ROLE NONE is being returned by sqlglot as unknown when its a valid Snowflake USE statement.
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.

1 participant