Support mysql partition to table selection (#959)

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
chunshao.rcs 2023-09-15 02:21:47 +08:00 committed by GitHub
parent a16791d019
commit f6e4be4c15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 108 additions and 7 deletions

View file

@ -58,6 +58,7 @@ fn parse_table_time_travel() {
version: Some(TableVersion::ForSystemTimeAsOf(Expr::Value(
Value::SingleQuotedString(version)
))),
partitions: vec![],
},
joins: vec![]
},]
@ -309,6 +310,7 @@ fn parse_delimited_identifiers() {
args,
with_hints,
version,
partitions: _,
} => {
assert_eq!(vec![Ident::with_quote('"', "a table")], name.0);
assert_eq!(Ident::with_quote('"', "alias"), alias.unwrap().name);
@ -514,6 +516,7 @@ fn parse_substring_in_select() {
args: None,
with_hints: vec![],
version: None,
partitions: vec![],
},
joins: vec![]
}],