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
pull/27078/head
Kyle Brandt 5 years ago committed by GitHub
parent a1f90521a0
commit 660510084c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      pkg/tsdb/azuremonitor/azure-log-analytics-datasource.go
  2. 2
      pkg/tsdb/azuremonitor/insights-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 {

@ -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 {

Loading…
Cancel
Save