[ESQL] EXACT_
Functions
#119388
Labels
:Analytics/ES|QL
AKA ESQL
>enhancement
Team:Analytics
Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Feature Request
Introduce the concept of
EXACT_
prefixed functions that operate similar to their "approximate" counterpart functions, but focus on accuracy over speed.Use-case
Elasticsearch has well documented that functions things like
COUNT_DISTINCT
are approximate as it is a trade-off for speed. However, as ES|QL is intended for a large number of use-cases, it'd be nice to have the ability to perform the opposite and trade speed for accuracy. This is only partially possible today with theCOUNT_DISTINCT
function as there is an upper-bound limit on precision. It would be useful to have a short-hand function built into ES|QL like,EXACT_COUNT_DISTINCT
that would do this. Accurate counts are possible today in regular DSL, but are somewhat verbose, as they require scripted metrics to be used. Having something similar in ES|QL (while also being "simpler") would be a nice value add.The text was updated successfully, but these errors were encountered: