Skip to content

Add query.max-select-rows property #26220

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vvvvh123
Copy link
Member

Description

This pull request adds a new config and session property: query_max_select_rows. It allows users to set an upper limit on the number of rows returned by a top-level SELECT query.

It is inspired by a StarRocks property that works in a similar way: sql_select_limit: documentation

Additional context and related issues

Closes #24896

Release notes

( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( x) Release notes are required, with the following suggested text:

## General
* Add `query.max-select-rows` property and `query_max_select_rows` session property to allow configuring limits on the number of rows returned by a SELECT query. ({issue}`24896`)

Copy link

cla-bot bot commented Jul 17, 2025

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Vikas Harlani.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email [email protected]
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@github-actions github-actions bot added the docs label Jul 17, 2025
@vvvvh123 vvvvh123 force-pushed the add-query-max-select-rows branch from 32c8b1c to 8261cb1 Compare July 17, 2025 09:12
@cla-bot cla-bot bot added the cla-signed label Jul 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

limit select queries via session properties
1 participant