mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-08 01:15:00 +00:00
Support INSERT OVERWRITE INTO syntax (#1584)
This commit is contained in:
parent
d0fcc06652
commit
00abaf2187
2 changed files with 8 additions and 3 deletions
|
@ -11291,9 +11291,8 @@ impl<'a> Parser<'a> {
|
||||||
|
|
||||||
let replace_into = false;
|
let replace_into = false;
|
||||||
|
|
||||||
let action = self.parse_one_of_keywords(&[Keyword::INTO, Keyword::OVERWRITE]);
|
let overwrite = self.parse_keyword(Keyword::OVERWRITE);
|
||||||
let into = action == Some(Keyword::INTO);
|
let into = self.parse_keyword(Keyword::INTO);
|
||||||
let overwrite = action == Some(Keyword::OVERWRITE);
|
|
||||||
|
|
||||||
let local = self.parse_keyword(Keyword::LOCAL);
|
let local = self.parse_keyword(Keyword::LOCAL);
|
||||||
|
|
||||||
|
|
|
@ -2952,3 +2952,9 @@ fn test_sf_double_dot_notation() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_parse_double_dot_notation_wrong_position() {}
|
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);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue