-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed
Closed
Copy link
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
8.18.1
Installed Plugins
No response
Java Version
bundled
OS Version
Container
Problem Description
The values aggregation states that it returns all values as a multi-valued field:
Returns all values in a group as a multivalued field.
However, if 2 or more values are the same, the returned result will only include the value once, instead of having all values.
Steps to Reproduce
- Create an index
- Index some docs, and have a field that you want to use
valuesagainst
POST example-index/_doc
{
"vc": "vc0001",
"share": 1
}
POST example-index/_doc
{
"vc": "vc0002",
"share": 1
}
POST example-index/_doc
{
"vc": "vc0003",
"share": 3,
}- Run an ES|QL query like:
FROM example-index
| STATS shares = VALUES(share)
- Get the response
shares = [1, 3]
- Expected (based on the wording of the docs) to get
shares = [1, 1, 3]
Logs (if relevant)
No response
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)