-
Notifications
You must be signed in to change notification settings - Fork 25.8k
Closed
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Elasticsearch Version
main
Installed Plugins
No response
Java Version
n/a
OS Version
n/a
Problem Description
The following ES|QL query gives incorrect results:
ROW x = [1,2,3,4]
| MV_EXPAND x
| STATS top1 = TOP(x, 1, "ASC") WHERE x==3,
top2 = TOP(x, 2, "ASC") WHERE x==3,
min = MIN(x) WHERE x==3
The three aggs should give the same result (3), however the results are:
top1 | top2 | min
---------------+---------------+---------------
1 |3 |3
Note that:
top2is effectively the same astop1here and correctly workstop1hasminas surrogate, however something goes wrong thereminitself is correct
Steps to Reproduce
see above
Logs (if relevant)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>bugTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)