prometheus/promql
Arve Knudsen c2bbabb4a7
promql.Engine: Refactor vector selector evaluation into a method (#14900)
* PromQL.Engine: Refactor Matrix expansion into a method

Add utility method promql.evaluator.expandSeriesToMatrix, for expanding a slice
of storage.Series into a promql.Matrix.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Rename to generateMatrix

Rename evaluator.expandSeriesToMatrix into generateMatrix, while also dropping
the start, end, interval arguments since they are evaluator fields.
Write more extensive method documentation.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Rename to evalVectorSelector

Rename to evalVectorSelector after discussing with @michahoffmann.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2024-09-24 11:03:56 +01:00
..
fuzz-data textparse: Add fuzzing and fix bug caught 2017-07-07 11:12:17 +02:00
parser Merge pull request #14820 from charleskorn/promqltest-native-histogram-format 2024-09-20 16:47:08 +02:00
promqltest Merge pull request #14820 from charleskorn/promqltest-native-histogram-format 2024-09-20 16:47:08 +02:00
bench_test.go promql: rename holt_winters to double_exponential_smoothing 2024-09-19 15:29:01 +02:00
engine.go promql.Engine: Refactor vector selector evaluation into a method (#14900) 2024-09-24 11:03:56 +01:00
engine_internal_test.go refactor: extract some PromQL Engine tests which use unexported structs 2024-05-08 16:27:17 +01:00
engine_test.go Make rate possible non-counter annotation consistent (#14910) 2024-09-18 10:21:25 +00:00
functions.go promql: rename holt_winters to double_exponential_smoothing 2024-09-19 15:29:01 +02:00
functions_internal_test.go Fix issue where summation of +/- infinity returns NaN instead of infinity 2024-06-28 11:26:54 +10:00
functions_test.go Refactor engine creation in tests 2024-07-14 13:58:51 +02:00
fuzz.go chore: remove unused code 2024-09-20 22:00:15 +05:30
fuzz_test.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
histogram_stats_iterator.go Use CopyTo when resetting histogram in stats iterator 2024-07-31 11:18:47 +02:00
histogram_stats_iterator_test.go Add more test cases 2024-07-29 14:53:32 +02:00
promql_test.go Refactor engine creation in tests 2024-07-14 13:58:51 +02:00
quantile.go promql(native histograms): Introduce exponential interpolation 2024-09-19 14:19:10 +02:00
quantile_test.go PromQL: ignore small errors for bucketQuantile (#13153) 2023-11-25 00:05:38 +01:00
query_logger.go chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
query_logger_test.go chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
value.go chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
value_test.go test: move most PromQL tests into separate test package 2024-05-08 16:28:56 +01:00