Class DefaultTimeSeriesAggregateFunction

All Implemented Interfaces:
NamedWriteable, Writeable, PostAnalysisPlanVerificationAware, Resolvable, OptionalArgument, SurrogateExpression

public class DefaultTimeSeriesAggregateFunction extends TimeSeriesAggregateFunction implements SurrogateExpression
An implicit default time-series aggregation function that delegates to the appropriate time-series aggregation function based on the field's data type.

The purpose of this class is to provide a better type resolution error message for implicit time-series aggregations. It avoids having to change the source text of the field expression, which would be more invasive.