Loading

ES|QL RANGE_MIN function

Returns the start value of a date range.

Embedded
range

Date range expression. If null, the function returns null.

Returns the minimum (start) value of a date_range. For a date_range [x, y), it returns x.

range result
date_range date
FROM decades
| WHERE decade == 1900
| EVAL min_bound = RANGE_MIN(date_range)
| KEEP date_range, min_bound
		
date_range:date_range min_bound:date
1900-01-01..1910-01-01 1900-01-01T00:00:00.000Z