mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-08 01:15:00 +00:00
Add support for first, last aggregate function parsing (#882)
* Add order by parsing to functions * Fix doc error * minor changes
This commit is contained in:
parent
33b12acce7
commit
1b86abebe2
12 changed files with 96 additions and 7 deletions
|
@ -2057,7 +2057,8 @@ fn test_composite_value() {
|
|||
)))],
|
||||
over: None,
|
||||
distinct: false,
|
||||
special: false
|
||||
special: false,
|
||||
order_by: vec![],
|
||||
}))))
|
||||
}),
|
||||
select.projection[0]
|
||||
|
@ -2219,6 +2220,7 @@ fn parse_current_functions() {
|
|||
over: None,
|
||||
distinct: false,
|
||||
special: true,
|
||||
order_by: vec![],
|
||||
}),
|
||||
expr_from_projection(&select.projection[0])
|
||||
);
|
||||
|
@ -2229,6 +2231,7 @@ fn parse_current_functions() {
|
|||
over: None,
|
||||
distinct: false,
|
||||
special: true,
|
||||
order_by: vec![],
|
||||
}),
|
||||
expr_from_projection(&select.projection[1])
|
||||
);
|
||||
|
@ -2239,6 +2242,7 @@ fn parse_current_functions() {
|
|||
over: None,
|
||||
distinct: false,
|
||||
special: true,
|
||||
order_by: vec![],
|
||||
}),
|
||||
expr_from_projection(&select.projection[2])
|
||||
);
|
||||
|
@ -2249,6 +2253,7 @@ fn parse_current_functions() {
|
|||
over: None,
|
||||
distinct: false,
|
||||
special: true,
|
||||
order_by: vec![],
|
||||
}),
|
||||
expr_from_projection(&select.projection[3])
|
||||
);
|
||||
|
@ -2503,6 +2508,7 @@ fn parse_delimited_identifiers() {
|
|||
over: None,
|
||||
distinct: false,
|
||||
special: false,
|
||||
order_by: vec![],
|
||||
}),
|
||||
expr_from_projection(&select.projection[1]),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue