fix: incorrect error rate query (#4805)

This commit is contained in:
Srikanth Chekuri 2024-04-03 16:42:00 +05:30 committed by GitHub
parent c76cef47ba
commit 87534b6fb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -879,7 +879,7 @@ func (r *ClickHouseReader) GetServices(ctx context.Context, queryParams *model.G
zap.L().Error("Error building query with tag params", zap.Error(errStatus)) zap.L().Error("Error building query with tag params", zap.Error(errStatus))
return return
} }
query += subQuery errorQuery += subQuery
args = append(args, argsSubQuery...) args = append(args, argsSubQuery...)
err = r.db.QueryRow(ctx, errorQuery, args...).Scan(&numErrors) err = r.db.QueryRow(ctx, errorQuery, args...).Scan(&numErrors)
if err != nil { if err != nil {