mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 03:07:20 +00:00
parent
17f2930885
commit
94ff46802c
3 changed files with 37 additions and 9 deletions
|
@ -1639,6 +1639,18 @@ fn parse_explain_analyze_with_simple_select() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_simple_analyze() {
|
||||
let sql = "ANALYZE TABLE t";
|
||||
let stmt = verified_stmt(sql);
|
||||
assert_eq!(
|
||||
stmt,
|
||||
Statement::Analyze {
|
||||
table_name: ObjectName(vec![Ident::new("t")])
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_named_argument_function() {
|
||||
let sql = "SELECT FUN(a => '1', b => '2') FROM foo";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue