Commit 03407a5
Support for Elasticsearch DSL in SimpleEngine (#219)
* Simple parsing logic for static set of Elastic DSL queries.
* Extract aggregation func kwargs during ES DSL parsing.
* Initial code for manual QueryExecutionContext creation (ES DSL). Currently does not parse date ranges, and no integration with aggregation/inference config.
* Preliminary test that query context can execute (basic quantile query).
* Simplify query patterns matched (support only simple aggregation and groupby) to map more easily to internal representation.
* Fix issue where percentile args have to be passed as a number from 0-1
(instead of 0-100) for ES DSL. Tests for single and multi label groupby
as well as unsupported queries.
* Fix test for simple aggregation (no groupby labels) inserting wrong groupby key.
* Preliminary code to parse relative dates in Elastic DSL.
* Move time range resolution into separate function during query exec context creation (ES DSL). Shorten query metadata creation code.
* Rename elastic DSL query test file.
* Cargo fmt and clippy. Move ES DSL tests into test submodule.
* Delete extra code in tests.
* Fix lint errors.
* Remove topk label processing (unsupported query type) for ES DSL.
---------
Co-authored-by: Milind Srivastava <milindsrivastava1997@users.noreply.github.com>1 parent 0426b66 commit 03407a5
12 files changed
Lines changed: 1873 additions & 3 deletions
File tree
- asap-common/dependencies/rs/elastic_dsl_utilities
- src
- asap-query-engine
- src
- engines
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
0 commit comments