We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ecfd4c commit d4b0e75Copy full SHA for d4b0e75
pkg/frontend/querymiddleware/experimental_functions.go
@@ -100,10 +100,7 @@ func containedExperimentalFunctions(expr parser.Expr) map[string]struct{} {
100
}
101
agg, ok := node.(*parser.AggregateExpr)
102
if ok {
103
- // Note that unlike most PromQL functions, the experimental nature of the aggregation functions are manually
104
- // defined and enforced, so they have to be hardcoded here and updated along with changes in Prometheus.
105
- switch agg.Op {
106
- case parser.LIMITK, parser.LIMIT_RATIO:
+ if agg.Op.IsExperimentalAggregator() {
107
expFuncNames[agg.Op.String()] = struct{}{}
108
109
0 commit comments