Skip to content

[BUG] Limit with offset reach maxResultWindow should not fail the query #4376

Closed

Description

@LantaoJin

What is the bug?
#3713 tried to prevent push down limit with offset reach maxResultWindow. But it depends the fallback mechanism to execute the query in v2 instead of execute in calcite. When the fallback disabled. The test https://github.com/opensearch-project/sql/blob/main/integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/3102.yml will fail in v3.

How can one reproduce the bug?
Add

setup:
  - do:
      query.settings:
        body:
          transient:
            plugins.calcite.enabled : true

in https://github.com/opensearch-project/sql/blob/main/integ-test/src/yamlRestTest/resources/rest-api-spec/test/issues/3102.yml

yaml test failed.

What is the expected behavior?
3102.yml should pass.

Activity

  1. added
    bug
    pushdown
    and removed on Sep 25, 2025
  2. self-assigned this
    on Sep 25, 2025
  3. moved this from Not Started to Done in PPL Trackeron Sep 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugpushdown

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions