Skip to content

[QueryService] Add an option to limit the maximum number of rows in a query response #30721

@alex268

Description

@alex268

Usually customer always can use LIMIT clause for the same function, but sometimes application needs separate option by some reasons:

  1. Various JDBC-based database viewers (like DataGrip) use that option (defined in standard JDBC Statement) to prevent OOM during client query execution
  2. Emulation of TableService's old behavior to support smooth switching to QueryService without OOM risks. Original issue feat: Support result set size limit for QueryService-based TableClient ydb-java-sdk#533
  3. Special case with 0 to get result set meta without receiving any data. It required by tools with custom query processing like Apache Spark

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions