Commit fff5c02
committed
Fix limitPushed not set when limit comes through pushDownSort count path
pushDownSort with a non-zero sort.getCount() pushes a limit to
requestBuilder directly, bypassing pushDownLimit() and leaving
limitPushed=false. This causes build() to incorrectly reject radial
vector search when the limit arrives via the sort-with-count path
(e.g. PPL sort command). Set limitPushed=true in the sort.getCount()
block alongside the existing requestBuilder.pushDownLimit() call.
Signed-off-by: Eric Wei <mengwei.eric@gmail.com>1 parent 1090b36 commit fff5c02
2 files changed
Lines changed: 26 additions & 0 deletions
File tree
- opensearch/src
- main/java/org/opensearch/sql/opensearch/storage/scan
- test/java/org/opensearch/sql/opensearch/storage/scan
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
539 | 564 | | |
540 | 565 | | |
541 | 566 | | |
| |||
0 commit comments