[data.search.aggs]: Create expression functions for object types used in agg params #67908
Labels
chore
Feature:Aggregations
Aggregation infrastructure (AggConfig, esaggs, ...)
Feature:ExpressionLanguage
Interpreter expression language (aka canvas pipeline)
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
There are a few agg types which have params which are objects. Currently in the expression functions for each agg type, we handle these params by passing the objects as stringified JSON (which is not ideal)
Instead each arg provided for the agg params should be a subexpression using a dedicated function which returns the object in the correct shape.
Here's the current list of agg params which are stringified objects that would need to be converted:
Note that each of these params will also need to add an
toExpressionAst
method to ensure callingAggConfig.toExpressionAst()
returns the expected valueRelated to #46902
The text was updated successfully, but these errors were encountered: