mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-07-07 17:04:59 +00:00
Add support for TOP before ALL/DISTINCT (#1495)
This commit is contained in:
parent
05821cc7db
commit
a5b0092506
10 changed files with 67 additions and 7 deletions
|
@ -114,6 +114,7 @@ fn parse_create_procedure() {
|
|||
body: Box::new(SetExpr::Select(Box::new(Select {
|
||||
distinct: None,
|
||||
top: None,
|
||||
top_before_distinct: false,
|
||||
projection: vec![SelectItem::UnnamedExpr(Expr::Value(number("1")))],
|
||||
into: None,
|
||||
from: vec![],
|
||||
|
@ -514,6 +515,7 @@ fn parse_substring_in_select() {
|
|||
body: Box::new(SetExpr::Select(Box::new(Select {
|
||||
distinct: Some(Distinct::Distinct),
|
||||
top: None,
|
||||
top_before_distinct: false,
|
||||
projection: vec![SelectItem::UnnamedExpr(Expr::Substring {
|
||||
expr: Box::new(Expr::Identifier(Ident {
|
||||
value: "description".to_string(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue