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:
Chris A 2023-10-24 06:19:01 -05:00 committed by GitHub
parent 9832adb376
commit 004a8dc5dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 51 additions and 10 deletions

View file

@ -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)";