File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -11291,9 +11291,8 @@ impl<'a> Parser<'a> {
1129111291
1129211292 let replace_into = false;
1129311293
11294- let action = self.parse_one_of_keywords(&[Keyword::INTO, Keyword::OVERWRITE]);
11295- let into = action == Some(Keyword::INTO);
11296- let overwrite = action == Some(Keyword::OVERWRITE);
11294+ let overwrite = self.parse_keyword(Keyword::OVERWRITE);
11295+ let into = self.parse_keyword(Keyword::INTO);
1129711296
1129811297 let local = self.parse_keyword(Keyword::LOCAL);
1129911298
Original file line number Diff line number Diff line change @@ -2952,3 +2952,9 @@ fn test_sf_double_dot_notation() {
29522952
29532953#[ test]
29542954fn test_parse_double_dot_notation_wrong_position ( ) { }
2955+
2956+ #[ test]
2957+ fn parse_insert_overwrite ( ) {
2958+ let insert_overwrite_into = r#"INSERT OVERWRITE INTO schema.table SELECT a FROM b"# ;
2959+ snowflake ( ) . verified_stmt ( insert_overwrite_into) ;
2960+ }
You can’t perform that action at this time.
0 commit comments