docs/MetricsQL.md: clarify docs for union() function

This commit is contained in:
Aliaksandr Valialkin 2021-10-11 17:40:38 +03:00
parent 84aa08d93a
commit d00f8b8800
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -615,7 +615,7 @@ See also [implicit query conversions](#implicit-query-conversions).
#### union
`union(q1, ..., qN)` returns a union of time series returned from `q1`, ..., `qN`. The `union` function name can be skipped - the following queries are quivalent: `union(q1, q2)` and `(q1, q2)`.
`union(q1, ..., qN)` returns a union of time series returned from `q1`, ..., `qN`. The `union` function name can be skipped - the following queries are quivalent: `union(q1, q2)` and `(q1, q2)`. It is expected that each `q*` query returns time series with unique sets of labels. Otherwise only the first time series out of series with identical set of labels is returned. Use [alias](#alias) and [label_set](#label_set) functions for giving unique labelsets per each `q*` query:
#### vector