fix: remove series with no points (#5077)

This commit is contained in:
Srikanth Chekuri 2024-05-24 18:56:30 +05:30 committed by GitHub
parent 76b1e40cbc
commit 1369fe1912
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,6 +23,10 @@ func applyHavingClause(result []*v3.Result, queryRangeParams *v3.QueryRangeParam
j--
}
}
if len(result.Series[i].Points) == 0 {
result.Series = append(result.Series[:i], result.Series[i+1:]...)
i--
}
}
}
}