Skip to content

Fixed stage name parsing for snowflake#2265

Open
romanoff wants to merge 3 commits intoapache:mainfrom
romanoff:fix_stage_name_parsing_for_snowflake
Open

Fixed stage name parsing for snowflake#2265
romanoff wants to merge 3 commits intoapache:mainfrom
romanoff:fix_stage_name_parsing_for_snowflake

Conversation

@romanoff
Copy link
Contributor

@romanoff romanoff commented Mar 4, 2026

Fixed special characters in stage name parsing for snowflake
Example queries:

SELECT * FROM @stage/day=18/23.parquet;
SELECT * FROM @stage/0:18:23/23.parquet;

Spec: https://docs.snowflake.com/en/user-guide/querying-stage

fn test_snowflake_stage_name_with_special_chars() {
// Stage path with '=' (Hive-style partitioning)
let sql = "SELECT * FROM @stage/day=18/23.parquet";
let stmt = snowflake().parse_sql_statements(sql).unwrap();
Copy link
Contributor

Choose a reason for hiding this comment

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

can we use the one_statement_parse_to (or verified_stmt if that works) for the tests?

@romanoff
Copy link
Contributor Author

romanoff commented Mar 9, 2026

@iffyio Updated. Thank you

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