Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(hogql): Fix LimitContext causing too high default limit with pagination #19478

Merged
merged 2 commits into from
Dec 21, 2023

Conversation

webjunkie
Copy link
Contributor

@webjunkie webjunkie commented Dec 21, 2023

Problem

If a query can be paginated, but has no limit set in the request, it gets the default limit.
For async queries however, we deliberately set the limit context to export to raise the max execution time. This however raises the default limit as well.

Changes

  • make a new LimitContext QUERY_ASYNC that uses the lower default limit

How did you test this code?

  • tests

@webjunkie webjunkie enabled auto-merge (squash) December 21, 2023 13:12
@webjunkie webjunkie merged commit 3670583 into master Dec 21, 2023
71 checks passed
@webjunkie webjunkie deleted the fix/limit-context-pagination branch December 21, 2023 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants