mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Support EXPLAIN
/ DESCR
/ DESCRIBE
[FORMATTED | EXTENDED]
(#1156)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
991dbab755
commit
ef4668075b
5 changed files with 103 additions and 30 deletions
|
@ -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"#;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue