prometheus/promql/parser
Oleg Zaytsev 0a43e788af
Allow VectorSelector.String() without matchers (#9282)
* Allow VectorSelector.String() without matchers

Previously this method was panicking because it was trying to allocate a
slice with capacity -1. There's nothing saying that VectorSelector
should have matchers, and it's actually prepared to have zero matcher
strings, so it's worth checking instead of panicking.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2021-09-01 09:48:18 +02:00
..
ast.go
functions.go Add present_over_time (#9097) 2021-07-29 12:38:11 +02:00
generated_parser.y Merge release 2.29 in main (#9196) 2021-08-12 18:38:06 +02:00
generated_parser.y.go Merge release 2.29 in main (#9196) 2021-08-12 18:38:06 +02:00
lex.go
lex_test.go
parse.go Replace godoc.org links 2021-06-17 07:18:51 -04:00
parse_test.go Merge release 2.29 in main (#9196) 2021-08-12 18:38:06 +02:00
printer.go Allow VectorSelector.String() without matchers (#9282) 2021-09-01 09:48:18 +02:00
printer_test.go Allow VectorSelector.String() without matchers (#9282) 2021-09-01 09:48:18 +02:00
value.go