-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Closed as not planned
Labels
:Analytics/SQLSQL queryingSQL querying>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)
Description
Currently underlying ES aggregations are returned as are, both as sub-aggregations and bucket selector.
Unfortunately due to the underlying inconsistencies this can have undesirable effects, for example:
- MAX/MIN can work on date fields however they return an actual long instead of a time object causing failures
- aggregations on null/empty groups return their initial result, not null which again is problematic (see Introduce contract to know whether InternalAggs have computed results or not #34903).
In both example, this can be handled inside SQL by wrapping the aggregation to guarantee the expected value.
Metadata
Metadata
Assignees
Labels
:Analytics/SQLSQL queryingSQL querying>enhancementTeam:AnalyticsMeta label for analytical engine team (ESQL/Aggs/Geo)Meta label for analytical engine team (ESQL/Aggs/Geo)