Skip to content

Prevent limit pushdown before action building instead of in action executing#4377

Merged
penghuo merged 2 commits intoopensearch-project:mainfrom
LantaoJin:pr/issues/4376
Sep 26, 2025
Merged

Prevent limit pushdown before action building instead of in action executing#4377
penghuo merged 2 commits intoopensearch-project:mainfrom
LantaoJin:pr/issues/4376

Conversation

@LantaoJin
Copy link
Member

@LantaoJin LantaoJin commented Sep 25, 2025

Description

#3713 tried to prevent push down limit with offset reach maxResultWindow in action being executing (applying) which didn't work in v3.

Fixing: Prevent limit pushdown before action building instead of in action executing

Related Issues

Resolves #4376

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • New functionality has javadoc added.
  • New functionality has a user manual doc added.
  • New PPL command checklist all confirmed.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff or -s.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…f waiting until action is executed

Signed-off-by: Lantao Jin <ltjin@amazon.com>
Signed-off-by: Lantao Jin <ltjin@amazon.com>
@LantaoJin LantaoJin added bug Something isn't working pushdown pushdown related issues labels Sep 25, 2025
@LantaoJin LantaoJin changed the title The limit pushdown check logic should be in action building instead of in action executing Prevent limit pushdown before action building instead of in action executing Sep 25, 2025
@LantaoJin
Copy link
Member Author

LantaoJin commented Sep 25, 2025

This blocks CI workflow in #4372

@penghuo penghuo merged commit 18f2280 into opensearch-project:main Sep 26, 2025
44 of 45 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Sep 26, 2025
…ecuting (#4377)

* The limit pushdown check logic should be in action building instead of waiting until action is executed

Signed-off-by: Lantao Jin <ltjin@amazon.com>

* Add an explain IT

Signed-off-by: Lantao Jin <ltjin@amazon.com>

---------

Signed-off-by: Lantao Jin <ltjin@amazon.com>
(cherry picked from commit 18f2280)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
qianheng-aws pushed a commit that referenced this pull request Sep 26, 2025
…tead of in action executing (#4386)

* Prevent limit pushdown before action building instead of in action executing (#4377)

* The limit pushdown check logic should be in action building instead of waiting until action is executed

Signed-off-by: Lantao Jin <ltjin@amazon.com>

* Add an explain IT

Signed-off-by: Lantao Jin <ltjin@amazon.com>

---------

Signed-off-by: Lantao Jin <ltjin@amazon.com>
(cherry picked from commit 18f2280)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix compiler error

Signed-off-by: Lantao Jin <ltjin@amazon.com>

---------

Signed-off-by: Lantao Jin <ltjin@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lantao Jin <ltjin@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 2.19-dev bug Something isn't working pushdown pushdown related issues v3.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants