clickhouse: add support for LIMIT BY (#977)

This commit is contained in:
Lukasz Stefaniak 2023-10-02 17:53:32 +02:00 committed by GitHub
parent 993769ec02
commit 2786c7eaf1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 56 additions and 1 deletions

View file

@ -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![],