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 textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
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 Optimize aggregations in PromQL engine (#8594) 2021-03-19 17:52:29 +01:00
engine_test.go LabelNames API with matchers (#9083) 2021-07-20 18:08:08 +05:30
engine.go Add present_over_time (#9097) 2021-07-29 12:38:11 +02:00
functions_test.go Combine Appender.Add and AddFast into a single Append method. (#8489) 2021-02-18 17:37:00 +05:30
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 Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
quantile.go Fix off-by-one error in funcHistogramQuantile / ensureMonotonic (#7393) 2020-06-15 11:32:10 +01:00
query_logger_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00
query_logger.go Switched to go-kit/log 2021-06-11 12:28:36 -04:00
test_test.go Promtool: Add feature flags to unit tests (#8958) 2021-06-30 22:43:39 +01:00
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