Skip to content

Introduce row_limit param #607

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 7 commits into
base: sea-migration
Choose a base branch
from
Open

Conversation

varun-edachali-dbx
Copy link
Collaborator

@varun-edachali-dbx varun-edachali-dbx commented Jun 19, 2025

What type of PR is this?

  • Feature

Description

Introduces a row_limit param in the Cursor that constrains the number of rows in the query result, through resultRowLimit in Thrift and through max_rows in SEA.

Despite row_limit not existing in the spec, we feel it is reasonable to introduce it as a param in the Cursor, because:

  • the Connection class has a number of non-spec params
  • a risk of non-spec methods is the feature not being discovered (i.e., users not realising this param is available to them), but this is not a major issue, since the feature can effectively be replicated by including LIMIT in their SQL query.

How is this tested?

  • Unit tests
  • E2E Tests
  • Manually
  • N/A

Related Tickets & Documents

N/A

Signed-off-by: varun-edachali-dbx <[email protected]>
@varun-edachali-dbx varun-edachali-dbx changed the title Introduce max_rows param for Cursor initialisation for SEA backend Introduce max_rows param in Cursor constructor to be used by SEA backend Jun 19, 2025
@varun-edachali-dbx varun-edachali-dbx changed the title Introduce max_rows param in Cursor constructor to be used by SEA backend Introduce max_rows param in Cursor constructor to be used by SEA backend Jun 19, 2025
Signed-off-by: varun-edachali-dbx <[email protected]>
@varun-edachali-dbx varun-edachali-dbx changed the title Introduce max_rows param in Cursor constructor to be used by SEA backend Introduce row_limit param Jun 19, 2025
@varun-edachali-dbx varun-edachali-dbx marked this pull request as draft June 19, 2025 07:58
Signed-off-by: varun-edachali-dbx <[email protected]>
Signed-off-by: varun-edachali-dbx <[email protected]>
Signed-off-by: varun-edachali-dbx <[email protected]>
@varun-edachali-dbx varun-edachali-dbx marked this pull request as ready for review June 20, 2025 03:50
@varun-edachali-dbx varun-edachali-dbx marked this pull request as draft June 20, 2025 04:00
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.

3 participants