mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
loki: do not convert NaN to null (#45389)
This commit is contained in:
parent
0639ccbdff
commit
6e0826a986
@ -306,7 +306,7 @@ describe('enhanceDataFrame', () => {
|
||||
[1, 1000],
|
||||
[0, 2000],
|
||||
[1, 4000],
|
||||
[null, 7000],
|
||||
[NaN, 7000],
|
||||
[Infinity, 8000],
|
||||
[-Infinity, 9000],
|
||||
]);
|
||||
|
@ -209,10 +209,6 @@ export function lokiPointsToTimeseriesPoints(data: Array<[number, string]>): Tim
|
||||
for (const [time, value] of data) {
|
||||
let datapointValue: TimeSeriesValue = parsePrometheusFormatSampleValue(value);
|
||||
|
||||
if (isNaN(datapointValue)) {
|
||||
datapointValue = null;
|
||||
}
|
||||
|
||||
const timestamp = time * 1000;
|
||||
|
||||
datapoints.push([datapointValue, timestamp]);
|
||||
|
Loading…
Reference in New Issue
Block a user