All Implemented Interfaces:
NamedWriteable, Writeable, Resolvable, EvaluatorMapper, OnlySurrogateExpression, SurrogateExpression

public class RangeContains extends EsqlScalarFunction implements OnlySurrogateExpression
RANGE_CONTAINS(a, b) -> boolean Returns true if the first argument contains the second. Equivalent to RANGE_WITHIN(b, a) — this function lowers to RangeWithin via SurrogateExpression.surrogate() on the coordinator, so it has no evaluator of its own. Supported signatures:
  • (date_range, date): range contains point
  • (date_range, date_range): first range contains second (second fully contained by first)