SSE: Fix NoData when some series were no data but others not (#45867)

Co-authored-by: Santiago <santiagohernandez.1997@gmail.com>
This commit is contained in:
Kyle Brandt
2022-02-24 21:01:04 -03:00
committed by GitHub
co-authored by Santiago
parent 8a98354844
commit a578cf0f7c
3 changed files with 33 additions and 2 deletions
+2 -2
View File
@@ -129,7 +129,7 @@ func (ccc *ConditionsCmd) Execute(ctx context.Context, vars mathexp.Vars) (mathe
}
thisCondFiring := firingCount > 0
thisCondNoData := nilReducedCount > 0
thisCondNoData := len(querySeriesSet.Values) == nilReducedCount
if i == 0 {
firing = thisCondFiring
@@ -144,7 +144,7 @@ func (ccc *ConditionsCmd) Execute(ctx context.Context, vars mathexp.Vars) (mathe
noDataFound = noDataFound && thisCondNoData
}
if len(querySeriesSet.Values) == nilReducedCount {
if thisCondNoData {
matches = append(matches, EvalMatch{
Metric: "NoData",
})