prometheus/promql
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
..
fuzz-data
parser Allow VectorSelector.String() without matchers (#9282) 2021-09-01 09:48:18 +02:00
testdata Add present_over_time (#9097) 2021-07-29 12:38:11 +02:00
bench_test.go
engine_test.go
engine.go Add present_over_time (#9097) 2021-07-29 12:38:11 +02:00
functions_test.go
functions.go Add present_over_time (#9097) 2021-07-29 12:38:11 +02:00
fuzz.go Add new Go build tags. 2021-08-27 10:24:14 +02:00
promql_test.go
quantile.go
query_logger_test.go
query_logger.go
test_test.go
test.go Add present_over_time (#9097) 2021-07-29 12:38:11 +02:00
value.go Add present_over_time (#9097) 2021-07-29 12:38:11 +02:00