mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
Support FILTER
in over clause (#1007)
Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
This commit is contained in:
parent
e857a45201
commit
ce62fe6d27
15 changed files with 102 additions and 2 deletions
|
@ -50,6 +50,7 @@ fn parse_map_access_expr() {
|
|||
Value::SingleQuotedString("endpoint".to_string())
|
||||
))),
|
||||
],
|
||||
filter: None,
|
||||
over: None,
|
||||
distinct: false,
|
||||
special: false,
|
||||
|
@ -89,6 +90,7 @@ fn parse_map_access_expr() {
|
|||
Value::SingleQuotedString("app".to_string())
|
||||
))),
|
||||
],
|
||||
filter: None,
|
||||
over: None,
|
||||
distinct: false,
|
||||
special: false,
|
||||
|
@ -138,6 +140,7 @@ fn parse_array_fn() {
|
|||
FunctionArg::Unnamed(FunctionArgExpr::Expr(Expr::Identifier(Ident::new("x1")))),
|
||||
FunctionArg::Unnamed(FunctionArgExpr::Expr(Expr::Identifier(Ident::new("x2")))),
|
||||
],
|
||||
filter: None,
|
||||
over: None,
|
||||
distinct: false,
|
||||
special: false,
|
||||
|
@ -196,6 +199,7 @@ fn parse_delimited_identifiers() {
|
|||
&Expr::Function(Function {
|
||||
name: ObjectName(vec![Ident::with_quote('"', "myfun")]),
|
||||
args: vec![],
|
||||
filter: None,
|
||||
over: None,
|
||||
distinct: false,
|
||||
special: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue