mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-23 15:34:09 +00:00
clickhouse: add support for LIMIT BY (#977)
This commit is contained in:
parent
993769ec02
commit
2786c7eaf1
7 changed files with 56 additions and 1 deletions
|
@ -92,6 +92,7 @@ fn parse_create_procedure() {
|
|||
body: vec![Statement::Query(Box::new(Query {
|
||||
with: None,
|
||||
limit: None,
|
||||
limit_by: vec![],
|
||||
offset: None,
|
||||
fetch: None,
|
||||
locks: vec![],
|
||||
|
@ -493,6 +494,7 @@ fn parse_substring_in_select() {
|
|||
assert_eq!(
|
||||
Box::new(Query {
|
||||
with: None,
|
||||
|
||||
body: Box::new(SetExpr::Select(Box::new(Select {
|
||||
distinct: Some(Distinct::Distinct),
|
||||
top: None,
|
||||
|
@ -532,6 +534,7 @@ fn parse_substring_in_select() {
|
|||
}))),
|
||||
order_by: vec![],
|
||||
limit: None,
|
||||
limit_by: vec![],
|
||||
offset: None,
|
||||
fetch: None,
|
||||
locks: vec![],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue