prometheus/promql
Oleg Zaytsev 4b7a44c7a0
Fix parser.VectorSelector.String() with empty name matcher (#14015)
The check fell into "this matcher equals vector selector's name" case when vector selector doesn't have a name and the matcher is an explicit matcher for an empty __name__ label.

To provide some context about why this is important: some downstream projects use the promql.Parse(expr.String()) to clone an expression's AST, and with this bug that matcher disappears in the cloning.

Signed-off-by: Oleg Zaytsev <mail@olegzaytsev.com>
2024-05-06 11:51:08 +02:00
..
fuzz-data
parser Fix parser.VectorSelector.String() with empty name matcher (#14015) 2024-05-06 11:51:08 +02:00
testdata promql: Fix limiting of extrapolation to negative values 2024-03-07 01:20:33 +01:00
bench_test.go Proposal to improve FPointSlice and HPointSlice allocation. (#13448) 2024-02-01 16:22:38 +00:00
engine_test.go promql: aggregations: skip result vector in range queries 2024-04-05 15:47:54 +01:00
engine.go promql: refactor: eliminate one 'else' 2024-04-05 15:47:54 +01:00
functions_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
functions.go golangci-lint: enable whitespace linter (#13905) 2024-04-11 09:27:54 +01:00
fuzz_test.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
fuzz.go promql: fuzz test needs symbol table for parser 2024-02-26 11:45:25 +00:00
promql_test.go sort_by_label: Switch to feature flag 2023-11-28 15:10:12 +01:00
quantile_test.go PromQL: ignore small errors for bucketQuantile (#13153) 2023-11-25 00:05:38 +01:00
quantile.go Move from golang.org/x/exp/slices into slices now that we only support Go >= 1.21 2024-02-28 14:54:53 +01:00
query_logger_test.go fix(promql/query_logger): close file in error handling (#13948) 2024-04-30 10:47:10 +02:00
query_logger.go fix(promql/query_logger): close file in error handling (#13948) 2024-04-30 10:47:10 +02:00
test_test.go promql: include more details in error message when creating test query fails or an unexpected series is returned (#13847) 2024-04-03 10:57:08 +02:00
test.go golangci-lint: enable whitespace linter (#13905) 2024-04-11 09:27:54 +01:00
value_test.go Shortcut ContainsSameLabelset() (#11000) 2022-07-13 15:18:10 +05:30
value.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00