Support EXPLAIN / DESCR / DESCRIBE [FORMATTED | EXTENDED] (#1156)

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
Jonathan Lehto 2024-03-01 14:07:04 -05:00 committed by GitHub
parent 991dbab755
commit ef4668075b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 103 additions and 30 deletions

View file

@ -48,6 +48,16 @@ fn parse_describe() {
generic(None).verified_stmt(describe);
}
#[test]
fn explain_describe_formatted() {
hive().verified_stmt("DESCRIBE FORMATTED test.table");
}
#[test]
fn explain_describe_extended() {
hive().verified_stmt("DESCRIBE EXTENDED test.table");
}
#[test]
fn parse_insert_overwrite() {
let insert_partitions = r#"INSERT OVERWRITE TABLE db.new_table PARTITION (a = '1', b) SELECT a, b, c FROM db.table"#;