File tree 2 files changed +8
-3
lines changed
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> {
11291
11291
11292
11292
let replace_into = false;
11293
11293
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);
11297
11296
11298
11297
let local = self.parse_keyword(Keyword::LOCAL);
11299
11298
Original file line number Diff line number Diff line change @@ -2952,3 +2952,9 @@ fn test_sf_double_dot_notation() {
2952
2952
2953
2953
#[ test]
2954
2954
fn 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