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 Add circular in-memory exemplars storage (#6635) 2021-03-16 15:17:45 +05:30
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 Prevent lexer from seeking to next rune after lexing escape sequence. (#8517) 2021-02-19 07:38:05 +01:00
lex_test.go Add start() and end() pre-processors for @ modifier (#8425) 2021-02-09 21:33:16 +05:30
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 promql: use explicit type declare instead of string. (#7716) 2020-08-02 09:57:38 +01:00