Skip to content

Commit 3afac0a

Browse files
committed
Update based on comment
1 parent 7ff3c63 commit 3afac0a

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

tests/sqlparser_snowflake.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2643,24 +2643,16 @@ fn test_snowflake_copy_into_stage_name_ends_with_parens() {
26432643
#[test]
26442644
fn test_snowflake_stage_name_with_special_chars() {
26452645
// Stage path with '=' (Hive-style partitioning)
2646-
let sql = "SELECT * FROM @stage/day=18/23.parquet";
2647-
let stmt = snowflake().parse_sql_statements(sql).unwrap();
2648-
assert_eq!(1, stmt.len());
2646+
snowflake().verified_stmt("SELECT * FROM @stage/day=18/23.parquet");
26492647

26502648
// Stage path with ':' (time-based partitioning)
2651-
let sql = "SELECT * FROM @stage/0:18:23/23.parquet";
2652-
let stmt = snowflake().parse_sql_statements(sql).unwrap();
2653-
assert_eq!(1, stmt.len());
2649+
snowflake().verified_stmt("SELECT * FROM @stage/0:18:23/23.parquet");
26542650

26552651
// COPY INTO with '=' in stage path
2656-
snowflake()
2657-
.parse_sql_statements("COPY INTO my_table FROM @stage/day=18/file.parquet")
2658-
.unwrap();
2652+
snowflake().verified_stmt("COPY INTO my_table FROM @stage/day=18/file.parquet");
26592653

26602654
// COPY INTO with ':' in stage path
2661-
snowflake()
2662-
.parse_sql_statements("COPY INTO my_table FROM @stage/0:18:23/file.parquet")
2663-
.unwrap();
2655+
snowflake().verified_stmt("COPY INTO my_table FROM @stage/0:18:23/file.parquet");
26642656
}
26652657

26662658
#[test]

0 commit comments

Comments
 (0)