Skip to content

Commit 6abe6a2

Browse files
committed
-marks absent as non parallelizable
Signed-off-by: Owen Diehl <[email protected]>
1 parent 88ab22f commit 6abe6a2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pkg/querier/astmapper/parallel.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ var summableAggregates = map[promql.ItemType]struct{}{
1717
var nonParallelFuncs = []string{
1818
"histogram_quantile",
1919
"quantile_over_time",
20+
"absent",
2021
}
2122

2223
// CanParallel tests if a subtree is parallelizable.

pkg/querier/queryrange/promql_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,6 @@ func Test_FunctionParallelism(t *testing.T) {
297297
{
298298
fn: "abs",
299299
},
300-
{
301-
fn: "absent",
302-
},
303300
{
304301
fn: "avg_over_time",
305302
isTestMatrix: true,

0 commit comments

Comments
 (0)