From 660510084cd4ffcbe58a097c4de1dec07632bec0 Mon Sep 17 00:00:00 2001 From: Kyle Brandt Date: Wed, 19 Aug 2020 10:42:54 -0400 Subject: [PATCH] AzureAnalytics: Use fillmode Null with format as time series (#27054) previously was using fillmode previous, which is not what we want here. Also we do not have fill missing with this data source anyways Fixes #27013 --- pkg/tsdb/azuremonitor/azure-log-analytics-datasource.go | 2 +- pkg/tsdb/azuremonitor/insights-analytics-datasource.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/tsdb/azuremonitor/azure-log-analytics-datasource.go b/pkg/tsdb/azuremonitor/azure-log-analytics-datasource.go index 422058bc8da..687010386da 100644 --- a/pkg/tsdb/azuremonitor/azure-log-analytics-datasource.go +++ b/pkg/tsdb/azuremonitor/azure-log-analytics-datasource.go @@ -184,7 +184,7 @@ func (e *AzureLogAnalyticsDatasource) executeQuery(ctx context.Context, query *A if query.ResultFormat == "time_series" { tsSchema := frame.TimeSeriesSchema() if tsSchema.Type == data.TimeSeriesTypeLong { - wideFrame, err := data.LongToWide(frame, &data.FillMissing{}) + wideFrame, err := data.LongToWide(frame, nil) if err == nil { frame = wideFrame } else { diff --git a/pkg/tsdb/azuremonitor/insights-analytics-datasource.go b/pkg/tsdb/azuremonitor/insights-analytics-datasource.go index 84c6a325863..9b8182e79da 100644 --- a/pkg/tsdb/azuremonitor/insights-analytics-datasource.go +++ b/pkg/tsdb/azuremonitor/insights-analytics-datasource.go @@ -162,7 +162,7 @@ func (e *InsightsAnalyticsDatasource) executeQuery(ctx context.Context, query *I if query.ResultFormat == "time_series" { tsSchema := frame.TimeSeriesSchema() if tsSchema.Type == data.TimeSeriesTypeLong { - wideFrame, err := data.LongToWide(frame, &data.FillMissing{}) + wideFrame, err := data.LongToWide(frame, nil) if err == nil { frame = wideFrame } else {