Commit 71af5a3
Support pagination in V2 engine, phase 1 (#226)
* Fixing integration tests broken during POC
Signed-off-by: MaxKsyunz <[email protected]>
* Comment to clarify an exception.
Signed-off-by: MaxKsyunz <[email protected]>
* Add support for paginated scroll request, first page.
Implement PaginatedPlanCache.convertToPlan for second page to work.
Signed-off-by: MaxKsyunz <[email protected]>
* Progress on paginated scroll request, subsequent page.
Signed-off-by: MaxKsyunz <[email protected]>
* Move `ExpressionSerializer` from `opensearch` to `core`.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Rename `Cursor` `asString` to `toString`.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Disable scroll cleaning.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Add full cursor serialization and deserialization.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Misc fixes.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Further work on pagination.
* Added push down page size from `LogicalPaginate` to `LogicalRelation`.
* Improved cursor encoding and decoding.
* Added cursor compression.
* Fixed issuing `SearchScrollRequest`.
* Fixed returning last empty page.
* Minor code grooming/commenting.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Pagination fix for empty indices.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix error reporting on wrong cursor.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Minor comments and error reporting improvement.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Add an end-to-end integration test.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Add `explain` request handlers.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Add IT for explain.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Address issues flagged by checkstyle build step (#229)
Signed-off-by: MaxKsyunz <[email protected]>
* Pagination, phase 1: Add unit tests for `:core` module with coverage. (#230)
* Add unit tests for `:core` module with coverage. Uncovered: `toCursor`, because it is will be changed soon.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Pagination, phase 1: Add unit tests for SQL module with coverage. (#239)
* Add unit tests for SQL module with coverage.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Update sql/src/main/java/org/opensearch/sql/sql/domain/SQLQueryRequest.java
Signed-off-by: Yury-Fridlyand <[email protected]>
Co-authored-by: GabeFernandez310 <[email protected]>
---------
Signed-off-by: Yury-Fridlyand <[email protected]>
Co-authored-by: GabeFernandez310 <[email protected]>
* Pagination, phase 1: Add unit tests for `:opensearch` module with coverage. (#233)
* Add UT for `:opensearch` module with full coverage, except `toCursor`.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix checkstyle.
Signed-off-by: Yury-Fridlyand <[email protected]>
---------
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix the merges.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix explain.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix scroll cleaning.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Store `TotalHits` and use it to report `total` in response.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Add missing UT for `:protocol` module.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix PPL UTs damaged in f4ea4ad.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Minor checkstyle fixes.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fallback to v1 engine for pagination (#245)
* Pagination fallback integration tests.
Signed-off-by: MaxKsyunz <[email protected]>
* Add UT with coverage for `toCursor` serialization.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix broken tests in `legacy`.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix getting `total` from non-paged requests and from queries without `FROM` clause.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix scroll cleaning.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix cursor request processing.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Update ITs.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix (again) TotalHits feature.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Fix typo in prometheus config.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Recover commented logging.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Move `test_pagination_blackbox` to a separate class and add logging.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Address some PR feedbacks: rename some classes and revert unnecessary whitespace changed.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Minor commenting.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Address PR comments.
* Add javadocs
* Renames
* Cleaning up some comments
* Remove unused code
* Speed up IT
Signed-off-by: Yury-Fridlyand <[email protected]>
* Minor missing changes.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Integration tests for fetch_size, max_result_window, and query.size_limit (#248)
Signed-off-by: MaxKsyunz <[email protected]>
* Remove `PaginatedQueryService`, extend `QueryService` to hold two planners and use them.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Move push down functions from request builders to a new interface.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Some file moves.
Signed-off-by: Yury-Fridlyand <[email protected]>
* Minor clean-up according to PR review.
Signed-off-by: Yury-Fridlyand <[email protected]>
---------
Signed-off-by: MaxKsyunz <[email protected]>
Signed-off-by: Yury-Fridlyand <[email protected]>
Co-authored-by: MaxKsyunz <[email protected]>
Co-authored-by: GabeFernandez310 <[email protected]>
Co-authored-by: Max Ksyunz <[email protected]>1 parent 259b001 commit 71af5a3
File tree
146 files changed
+4936
-649
lines changed- core
- src
- main/java/org/opensearch/sql
- analysis
- ast
- statement
- tree
- exception
- executor
- execution
- pagination
- expression/serialization
- planner
- logical
- optimizer
- pattern
- rule
- physical
- storage
- testFixtures/java/org/opensearch/sql/executor
- test/java/org/opensearch/sql
- analysis
- executor
- execution
- pagination
- streaming
- expression/serialization
- planner
- logical
- optimizer
- pattern
- physical
- storage
- integ-test
- src/test/java/org/opensearch/sql
- legacy
- ppl
- sql
- util
- legacy/src
- main/java/org/opensearch/sql/legacy/plugin
- test/java/org/opensearch/sql/legacy/plugin
- opensearch/src
- main/java/org/opensearch/sql/opensearch
- client
- executor
- protector
- request
- response
- storage
- scan
- script
- aggregation
- dsl
- filter
- system
- test/java/org/opensearch/sql/opensearch
- client
- executor
- protector
- request
- response
- storage
- scan
- script
- aggregation
- dsl
- filter
- system
- plugin
- src/main/java/org/opensearch/sql/plugin
- config
- transport
- ppl/src
- main/java/org/opensearch/sql/ppl
- parser
- test/java/org/opensearch/sql/ppl
- parser
- protocol/src
- main/java/org/opensearch/sql/protocol/response
- format
- test/java/org/opensearch/sql/protocol/response
- format
- sql/src
- main/java/org/opensearch/sql/sql
- domain
- parser
- test/java/org/opensearch/sql/sql
- domain
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
146 files changed
+4936
-649
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
| 89 | + | |
88 | 90 | | |
89 | 91 | | |
90 | 92 | | |
| |||
529 | 531 | | |
530 | 532 | | |
531 | 533 | | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
532 | 540 | | |
533 | 541 | | |
534 | 542 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
289 | 290 | | |
290 | 291 | | |
291 | 292 | | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
292 | 297 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
| 41 | + | |
32 | 42 | | |
33 | 43 | | |
34 | 44 | | |
| |||
46 | 56 | | |
47 | 57 | | |
48 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
49 | 67 | | |
50 | 68 | | |
51 | 69 | | |
| |||
97 | 115 | | |
98 | 116 | | |
99 | 117 | | |
100 | | - | |
| 118 | + | |
101 | 119 | | |
102 | 120 | | |
Lines changed: 59 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
0 commit comments