prometheus/promql
Oleg Zaytsev dabd789fd5
Quote label name in matchers when needed
When the label name of a matcher contains non-standard characters, like
a dot, or starts with a digit, it should be quoted.

If it's not quoted, then `VectorSelector.String()` isn't a valid PromQL.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-05-08 16:58:51 +02:00
..
fuzz-data
parser Quote label name in matchers when needed 2024-05-08 16:58:51 +02:00
testdata
bench_test.go
engine.go [REFACTOR] PromQL: simplify rangeEvalTimestampFunctionOverVectorSelector (#14021) 2024-05-08 10:39:44 +01:00
engine_test.go [REFACTOR] PromQL: simplify rangeEvalTimestampFunctionOverVectorSelector (#14021) 2024-05-08 10:39:44 +01:00
functions.go
functions_test.go
fuzz.go
fuzz_test.go
promql_test.go
quantile.go
quantile_test.go
query_logger.go
query_logger_test.go
test.go
test_test.go
value.go
value_test.go