Logical/set operators

These binary operators combine two instant vectors by matching their label sets. For the set operators that Elasticsearch supports, and their restrictions, refer to Not supported yet and Prometheus compatibility.

Returns all elements from the left vector plus elements from the right vector that have no matching label sets in the left.

An or chain takes at most 8 operands by default. Change the limit with the esql.query.max_branch_count_per_merge cluster setting.

Operands

lhs, rhs (instant_vector)
The two instant vectors to combine by matching label sets.

Returns

An instant_vector.

Example

vector1 or vector2
		
Note

Differences from Prometheus

on(...) or ignoring(...), such as a or on(job) b, and or inside another expression, such as (sum(a) or sum(b)) * 2 or count(a or b), aren't supported yet. Refer to Prometheus compatibility.