Commit e2678a1
Support timechart command with Calcite (opensearch-project#3993)
* WIP: Support timechart grammar / AST
Signed-off-by: Selina Song <selsong@amazon.com>
* WIP: Support span=unit in timechart
Signed-off-by: Selina Song <selsong@amazon.com>
* Return correct column format after span=unit
Signed-off-by: Selina Song <selsong@amazon.com>
* sort by @timestamp, group by aggregate function
Signed-off-by: Selina Song <selsong@amazon.com>
* WIP: pivot table by field
Signed-off-by: Selina Song <selsong@amazon.com>
* Correct pivot format for by field
Signed-off-by: Selina Song <selsong@amazon.com>
* Fix aggregation composite bucket limit
Signed-off-by: Selina Song <selsong@amazon.com>
* Add timechart.rst doc and PPLQueryAnonymizer test
Signed-off-by: Selina Song <selsong@amazon.com>
* Add ExplainIT for timechart
Signed-off-by: Selina Song <selsong@amazon.com>
* Restore reverse ExplainIT
Signed-off-by: Selina Song <selsong@amazon.com>
* Update explainIT timechart
Signed-off-by: Selina Song <selsong@amazon.com>
* spotlessApply formatting
Signed-off-by: Selina Song <selsong@amazon.com>
* format IT
Signed-off-by: Selina Song <selsong@amazon.com>
* Add limit parameter
Signed-off-by: Selina Song <selsong@amazon.com>
* Add limit=0 means no limit, show all values, no other
Signed-off-by: Selina Song <selsong@amazon.com>
* Add useother parameter
Signed-off-by: Selina Song <selsong@amazon.com>
* clean up format, fix column order
Signed-off-by: Selina Song <selsong@amazon.com>
* add test for formatter
Signed-off-by: Selina Song <selsong@amazon.com>
* Increase test coverage for formatter
Signed-off-by: Selina Song <selsong@amazon.com>
* Rename bin option expression, modify constructor
Signed-off-by: Selina Song <selsong@amazon.com>
* Make test data smaller, update IT, rst
Signed-off-by: Selina Song <selsong@amazon.com>
* add explain output to IT
Signed-off-by: Selina Song <selsong@amazon.com>
* Add limitation to rst, format, comment
Signed-off-by: Selina Song <selsong@amazon.com>
* Add test coverage formatter
Signed-off-by: Selina Song <selsong@amazon.com>
* Refactor formatter for clarity
Signed-off-by: Selina Song <selsong@amazon.com>
* fix NPE
Signed-off-by: Selina Song <selsong@amazon.com>
* add import
Signed-off-by: Selina Song <selsong@amazon.com>
* update mapping to match smaller dataset
Signed-off-by: Selina Song <selsong@amazon.com>
* update explainIT
Signed-off-by: Selina Song <selsong@amazon.com>
* Fix explainIT, improve code structure
Signed-off-by: Selina Song <selsong@amazon.com>
* spotless
Signed-off-by: Selina Song <selsong@amazon.com>
* Support diff position parameters, count default 0 not null, update doc rst
Signed-off-by: Selina Song <selsong@amazon.com>
* fix count aggr type int
Signed-off-by: Selina Song <selsong@amazon.com>
* rename @timestamp column
Signed-off-by: Selina Song <selsong@amazon.com>
* move parameter extraction to PPLService
Signed-off-by: Selina Song <selsong@amazon.com>
* clean up PPLService
Signed-off-by: Selina Song <selsong@amazon.com>
* fix count type test, doc rst format
Signed-off-by: Selina Song <selsong@amazon.com>
* add test coverage
Signed-off-by: Selina Song <selsong@amazon.com>
* WIP: SQL query with limit useother
Signed-off-by: Selina Song <selsong@amazon.com>
* revert QueryService
Signed-off-by: Selina Song <selsong@amazon.com>
* add limit useother to SQL query
Signed-off-by: Selina Song <selsong@amazon.com>
* SQL query working, WIP column rename
Signed-off-by: Selina Song <selsong@amazon.com>
* use loadIndex in IT
Signed-off-by: Selina Song <selsong@amazon.com>
* Rename fields to match, update doc
Signed-off-by: Selina Song <selsong@amazon.com>
* revert QueryResult
Signed-off-by: Selina Song <selsong@amazon.com>
* revert gradle build
Signed-off-by: Selina Song <selsong@amazon.com>
* fix format
Signed-off-by: Selina Song <selsong@amazon.com>
* Add count fill zero, update toSQL tests, doc
Signed-off-by: Selina Song <selsong@amazon.com>
* fix nits
Signed-off-by: Selina Song <selsong@amazon.com>
* Fix rename aggregation only no by field
Signed-off-by: Selina Song <selsong@amazon.com>
* Update SQL test
Signed-off-by: Selina Song <selsong@amazon.com>
* revert OS Exec Engine edits
Signed-off-by: Selina Song <selsong@amazon.com>
* correct OS Exec Engine revert to 5ec9603
Signed-off-by: Selina Song <selsong@amazon.com>
* restore OS Exec Engine
Signed-off-by: Selina Song <selsong@amazon.com>
* update QueryAnonymizer Test to reflect default
Signed-off-by: Selina Song <selsong@amazon.com>
* WIP: Add null=1, Other fill zero wip
Signed-off-by: Selina Song <selsong@amazon.com>
* Add doctest and update ExplainIT
Signed-off-by: Selina Song <selsong@amazon.com>
* Replace detectFieldIndices function
Signed-off-by: Selina Song <selsong@amazon.com>
* update explainIT
Signed-off-by: Selina Song <selsong@amazon.com>
* Fix Other in zero fill case
Signed-off-by: Selina Song <selsong@amazon.com>
* Fix OTHER in zero fill case
Signed-off-by: Selina Song <selsong@amazon.com>
* spotless format
Signed-off-by: Selina Song <selsong@amazon.com>
* update doc with null example
Signed-off-by: Selina Song <selsong@amazon.com>
* null not included in limit calc
Signed-off-by: Selina Song <selsong@amazon.com>
* update SQL test
Signed-off-by: Selina Song <selsong@amazon.com>
* update SQL test format
Signed-off-by: Selina Song <selsong@amazon.com>
* Update ExplainIT with count
Signed-off-by: Selina Song <selsong@amazon.com>
* remove unused code
Signed-off-by: Selina Song <selsong@amazon.com>
* Fix SQL tests nullable
Signed-off-by: Selina Song <selsong@amazon.com>
* spotless format
Signed-off-by: Selina Song <selsong@amazon.com>
---------
Signed-off-by: Selina Song <selsong@amazon.com>
Signed-off-by: Selina Song <selinasong6@gmail.com>
Co-authored-by: Selina Song <selsong@amazon.com>1 parent 8638460 commit e2678a1
25 files changed
Lines changed: 1898 additions & 2 deletions
File tree
- core/src/main/java/org/opensearch/sql
- analysis
- ast
- tree
- calcite
- docs
- user/ppl
- cmd
- integ-test/src/test
- java/org/opensearch/sql
- calcite/remote
- legacy
- resources
- expectedOutput/calcite
- indexDefinitions
- ppl/src
- main
- antlr
- java/org/opensearch/sql/ppl
- parser
- utils
- test/java/org/opensearch/sql/ppl
- calcite
- utils
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
739 | 740 | | |
740 | 741 | | |
741 | 742 | | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
742 | 748 | | |
743 | 749 | | |
744 | 750 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
260 | 261 | | |
261 | 262 | | |
262 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
263 | 268 | | |
264 | 269 | | |
265 | 270 | | |
| |||
Lines changed: 65 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 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments