Skip to content

Commit

Permalink
query-generator: Don't generate paginate in subqueries
Browse files Browse the repository at this point in the history
We only support pagination in the leaf query right now

Change-Id: I6d85a1be8fdf2f24ff2d077c3c65227b2e3973fe
Reviewed-on: https://gerrit.readyset.name/c/readyset/+/4803
Tested-by: Buildkite CI
Reviewed-by: Nick Marino <nick@readyset.io>
  • Loading branch information
glittershark committed May 2, 2023
1 parent b36d203 commit 241f066
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions query-generator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,7 @@ pub enum QueryOperation {
#[strategy(0..=100u64)]
limit: u64,
},
#[weight(u32::from(!args.in_subquery))]
Paginate {
order_type: OrderType,
#[strategy(0..=100u64)]
Expand Down

0 comments on commit 241f066

Please sign in to comment.