mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 19:27:21 +00:00
Table time travel clause support, add visit_table_factor
to Visitor (#951)
This commit is contained in:
parent
9500649c35
commit
1ea8858575
15 changed files with 225 additions and 12 deletions
|
@ -45,6 +45,7 @@ fn test_square_brackets_over_db_schema_table_name() {
|
|||
alias: None,
|
||||
args: None,
|
||||
with_hints: vec![],
|
||||
version: None,
|
||||
},
|
||||
joins: vec![],
|
||||
}
|
||||
|
@ -89,6 +90,7 @@ fn test_double_quotes_over_db_schema_table_name() {
|
|||
alias: None,
|
||||
args: None,
|
||||
with_hints: vec![],
|
||||
version: None,
|
||||
},
|
||||
joins: vec![],
|
||||
}
|
||||
|
@ -108,11 +110,13 @@ fn parse_delimited_identifiers() {
|
|||
alias,
|
||||
args,
|
||||
with_hints,
|
||||
version,
|
||||
} => {
|
||||
assert_eq!(vec![Ident::with_quote('"', "a table")], name.0);
|
||||
assert_eq!(Ident::with_quote('"', "alias"), alias.unwrap().name);
|
||||
assert!(args.is_none());
|
||||
assert!(with_hints.is_empty());
|
||||
assert!(version.is_none());
|
||||
}
|
||||
_ => panic!("Expecting TableFactor::Table"),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue