mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 08:33:06 +00:00
4b7a44c7a0
The check fell into "this matcher equals vector selector's name" case when vector selector doesn't have a name and the matcher is an explicit matcher for an empty __name__ label. To provide some context about why this is important: some downstream projects use the promql.Parse(expr.String()) to clone an expression's AST, and with this bug that matcher disappears in the cloning. Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com> |
||
---|---|---|
.. | ||
posrange | ||
ast.go | ||
functions.go | ||
generated_parser.y | ||
generated_parser.y.go | ||
lex_test.go | ||
lex.go | ||
parse_test.go | ||
parse.go | ||
prettier_rules.md | ||
prettier_test.go | ||
prettier.go | ||
printer_test.go | ||
printer.go | ||
value.go |