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

public class RangeIntersects extends EsqlScalarFunction implements SurrogateExpression, TranslationAware
RANGE_INTERSECTS(a, b) -> boolean Returns true if the two arguments overlap. The relation is symmetric: argument order does not matter. Supported signatures:
  • (date_range, date_range): the two ranges overlap, i.e. a.from < b.to && b.from < a.to for half-open ranges
  • (date, date_range) and (date_range, date): the point is inside the range — equivalent to RANGE_WITHIN's point case
  • (date, date): degenerate; equivalent to a == b, lowered to Equals via SurrogateExpression