Commit 311a722
authored
ESQL: Support for multi-argument aggs (#132424)
Adds support for multi-argument grouped aggs. Previously we only had
support for aggs with a value and a timestamp. Now we can support any
number of fields.
This change is mostly mechanical and mostly in generated code. The only
production code changes are:
1. Rename things like `block` and `vector` to `fooBlock` so names are
unique with multi-argument fields. `foo` comes from the name of the
argument to `combine`.
2. Support for passing `Block`s of `long`s in `FirstOverTime` and
`LastOverTime`. This will allow it to function outside of TSDB.
3. Flip the order of the arguments in the `combine` methods for
`FirstOverTime` and `LastOverTime` so they line up with how the ESQL
code orders the arguments. This shouldn't change the runtime at all.
4. Rename the offset variable we use for reading from vectors in
non-grouped code so it's the same name as we use in grouped code.
This just keeps the code gen a little more consistent.1 parent a86ab92 commit 311a722
File tree
158 files changed
+5853
-3675
lines changed- x-pack/plugin/esql/compute
- gen/src/main/java/org/elasticsearch/compute/gen
- src/main
- generated-src/org/elasticsearch/compute/aggregation
- generated/org/elasticsearch/compute/aggregation
- spatial
- java/org/elasticsearch/compute/aggregation
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
158 files changed
+5853
-3675
lines changedLines changed: 16 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
| |||
344 | 343 | | |
345 | 344 | | |
346 | 345 | | |
347 | | - | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
348 | 350 | | |
349 | 351 | | |
350 | | - | |
| 352 | + | |
351 | 353 | | |
352 | 354 | | |
353 | 355 | | |
| |||
420 | 422 | | |
421 | 423 | | |
422 | 424 | | |
423 | | - | |
424 | | - | |
| 425 | + | |
| 426 | + | |
425 | 427 | | |
426 | 428 | | |
427 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
428 | 433 | | |
429 | 434 | | |
430 | 435 | | |
| |||
440 | 445 | | |
441 | 446 | | |
442 | 447 | | |
443 | | - | |
| 448 | + | |
444 | 449 | | |
445 | 450 | | |
446 | 451 | | |
| |||
451 | 456 | | |
452 | 457 | | |
453 | 458 | | |
454 | | - | |
| 459 | + | |
455 | 460 | | |
456 | 461 | | |
| 462 | + | |
| 463 | + | |
457 | 464 | | |
458 | 465 | | |
459 | 466 | | |
| |||
753 | 760 | | |
754 | 761 | | |
755 | 762 | | |
756 | | - | |
| 763 | + | |
757 | 764 | | |
758 | 765 | | |
759 | 766 | | |
| |||
Lines changed: 154 additions & 179 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments