elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
1.1k stars 24.83k forks source link

ESQL: Aggregations feature requests #99999

Open costin opened 1 year ago

costin commented 1 year ago

Description

ESQL was designed to work around many of the limitations of the Aggregations framework because it can plan it's actions and, one day, it'll be able to take multiple trips to the data nodes. We've been accumulating aggregations feature requests that needed something we'd like to do in ESQL for a long time. Here I'm going to link them:

--- notes actually for ESQL I recommend a small variation: first() and last() should take the first and last field as designated by the current sorting key, while earliest() and latest() work with the @timestamp.

so for [@timestamp, key, value] --> [t1, foo, 1] [t2, bar, 2] from .. | sort key | stats first(key) // returns "bar" from .. | stats earliest(key) // returns "foo"

elasticsearchmachine commented 1 year ago

Pinging @elastic/es-ql (Team:QL)

elasticsearchmachine commented 1 year ago

Pinging @elastic/elasticsearch-esql (:Query Languages/ES|QL)

elasticsearchmachine commented 10 months ago

Pinging @elastic/es-analytics-geo (Team:Analytics)