forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ESQL: Allow grouping key inside stats expressions (elastic#106579)
Similar to aggs, allow grouping keys to used inside STATS expressions by introducing a synthetic eval, e.g.: STATS a = x + count(*) BY x becomes STATS c = count(*) BY x | EVAL a = x + c | KEEP a, x To better handle overriding aliases, introduce EsqlAggregate which keeps the declared structure intact during analysis and verification while merging the output. The deduplication happens now in the optimization phase. Fix small bug that caused replacement of expressions inside aggregations to be skipped despite being applied Improved Verifier to not repeat error messages in case for Aggregates Removed verification heuristics for missing columns as functions as it was too broad
- Loading branch information
Showing
11 changed files
with
728 additions
and
153 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 106579 | ||
summary: "ESQL: Allow grouping key inside stats expressions" | ||
area: ES|QL | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.