Support INSERT OVERWRITE INTO syntax (#1584)

This commit is contained in:
Yuval Shkolar 2024-12-09 22:25:10 +02:00 committed by GitHub
parent d0fcc06652
commit 00abaf2187
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View file

@ -11291,9 +11291,8 @@ impl<'a> Parser<'a> {
let replace_into = false;
let action = self.parse_one_of_keywords(&[Keyword::INTO, Keyword::OVERWRITE]);
let into = action == Some(Keyword::INTO);
let overwrite = action == Some(Keyword::OVERWRITE);
let overwrite = self.parse_keyword(Keyword::OVERWRITE);
let into = self.parse_keyword(Keyword::INTO);
let local = self.parse_keyword(Keyword::LOCAL);

View file

@ -2952,3 +2952,9 @@ fn test_sf_double_dot_notation() {
#[test]
fn test_parse_double_dot_notation_wrong_position() {}
#[test]
fn parse_insert_overwrite() {
let insert_overwrite_into = r#"INSERT OVERWRITE INTO schema.table SELECT a FROM b"#;
snowflake().verified_stmt(insert_overwrite_into);
}