Skip to content

Commit 32a3470

Browse files
committed
Trim parser comment for COPY INTO cast bail
1 parent 8c19978 commit 32a3470

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/dialect/snowflake.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,9 +1546,7 @@ fn parse_select_item_for_data_load(
15461546
}
15471547

15481548
// A trailing `::` means this is a cast expression (e.g.
1549-
// `$1:"col"::NUMBER(38,0)`), not a stage-load-select-item. Bail so
1550-
// `maybe_parse` rewinds and the caller falls through to
1551-
// `parse_select_item`, which handles the cast correctly.
1549+
// `$1:"col"::NUMBER(38,0)`), not a stage-load-select-item.
15521550
if matches!(parser.peek_token_ref().token, Token::DoubleColon) {
15531551
return parser.expected("stage load select item", parser.peek_token());
15541552
}

0 commit comments

Comments
 (0)