mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Support multiple PARTITION
statements in ALTER TABLE ADD
statement (#1011)
Co-authored-by: Chris A <chrisa@indeed.com> Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
9832adb376
commit
004a8dc5dd
5 changed files with 51 additions and 10 deletions
|
@ -128,6 +128,12 @@ fn test_add_partition() {
|
|||
hive().verified_stmt(add);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_add_multiple_partitions() {
|
||||
let add = "ALTER TABLE db.table ADD IF NOT EXISTS PARTITION (`a` = 'asdf', `b` = 2) PARTITION (`a` = 'asdh', `b` = 3)";
|
||||
hive().verified_stmt(add);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_drop_partition() {
|
||||
let drop = "ALTER TABLE db.table DROP PARTITION (a = 1)";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue