app/vmselect/promql: explain why empty timeseries arent removed in transformLabelValue

This commit is contained in:
Aliaksandr Valialkin 2019-08-21 11:29:07 +03:00
parent db1de4277c
commit 491b1762c8

View File

@ -904,6 +904,8 @@ func transformLabelValue(tfa *transformFuncArg) ([]*timeseries, error) {
values[i] = v
}
}
// Do not remove timeseries with only NaN values, so `default` could be applied to them:
// label_value(q, "label") default 123
return rvs, nil
}