prometheus/promql
Arve Knudsen a25160e6a4
[REFACTOR] PromQL: simplify rangeEvalTimestampFunctionOverVectorSelector (#14021)
The function `rangeEvalTimestampFunctionOverVectorSelector` appeared to be checking histogram size, however the value it used was always 0 due to subtle variable shadowing.
However we don't need to pass sample values to the `timestamp` function, since the latter only cares about timestamps. This also affects peak sample count in statistics, since we are no longer copying histogram samples.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2024-05-08 10:39:44 +01:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
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.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 golangci-lint: enable whitespace linter (#13905) 2024-04-11 09:27:54 +01:00
functions_test.go golangci-lint: enable testifylint linter (#13254) 2023-12-07 11:35:01 +00:00
fuzz.go promql: fuzz test needs symbol table for parser 2024-02-26 11:45:25 +00:00
fuzz_test.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
promql_test.go sort_by_label: Switch to feature flag 2023-11-28 15:10:12 +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
quantile_test.go PromQL: ignore small errors for bucketQuantile (#13153) 2023-11-25 00:05:38 +01:00
query_logger.go fix(promql/query_logger): close file in error handling (#13948) 2024-04-30 10:47:10 +02:00
query_logger_test.go fix(promql/query_logger): close file in error handling (#13948) 2024-04-30 10:47:10 +02:00
test.go golangci-lint: enable whitespace linter (#13905) 2024-04-11 09:27:54 +01: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
value.go Optimize histogram iterators (#13340) 2024-01-23 17:02:14 +01:00
value_test.go Shortcut ContainsSameLabelset() (#11000) 2022-07-13 15:18:10 +05:30