-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Closed
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
The ESQL aggregate function TOP
supports numerics and dates. We'd love to get support for ip
, boolean
, and keyword
/text
fields. These are all unique and different.
-
ip
fields are a fixed length string type. We could use exactly the same technique to supportip
. -
boolean
fields are single bit fields and their sorting is funky. In this case I think having a small a small counter for the number offalse
s and the number oftrue
s you've seen is probably fine. That's kind of howVALUES
works for booleans - though it deduplicates so instead of a counter it's just twoboolean
values. -
text
/keyword
fields have a variable length. They are super useful to support, but they are probably the most difficult. Maybe we'd store "ordinal" values in the min heap and we'd use a side car structure to assign ordinals. Or something. ESQL: TOP support for strings #113183
Metadata
Metadata
Assignees
Labels
:Analytics/ES|QLAKA ESQLAKA ESQL>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)