All Implemented Interfaces:
NamedWriteable, Writeable, PostAnalysisPlanVerificationAware, Resolvable, EvaluatorMapper, ConfigurationFunction, OptionalArgument, TimestampAware, SurrogateExpression

In a single-parameter mode, the function always uses the current time as the end of the range.
Supported single parameter mode formats:
  • TRANGE(1h) - [now - 1h; now] - supports time_duration (1h, 1min, etc) and period (1day, 1month, etc.)
Supported two parameter mode formats:
  • TRANGE(2024-05-12T12:00:00, 2024-05-12T15:30:00) - [explicit start; explicit end]
  • TRANGE(1715504400000, 1715517000000) - [explicit start in millis; explicit end in millis]