Open gwdawson opened 1 year ago
VectorAggregationExpr take a MetricExpr as an argument, when the passed argument is also a VectorAggregationExpr node, the nested part of the query is duplicated.
VectorAggregationExpr
MetricExpr
QUERY: sum(avg(rate({source="data"}[1m]))) EXPECTED: sum( avg( rate( {source="data"} [1m] ) ) ) ACTUAL: sum( avg( rate( {source="data"} [1m] ) ) )avg( rate( {source="data"} [1m] ) )
VectorAggregationExpr
take aMetricExpr
as an argument, when the passed argument is also aVectorAggregationExpr
node, the nested part of the query is duplicated.