From d3e7fc60679b22cb4fffa210465bc5d99c903151 Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Sat, 11 Jun 2022 15:57:12 -0700 Subject: [PATCH] make sure we dont create incorrect temp data. --- webapp/backend/pkg/database/scrutiny_repository_tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/backend/pkg/database/scrutiny_repository_tasks.go b/webapp/backend/pkg/database/scrutiny_repository_tasks.go index b7f487a..079caff 100644 --- a/webapp/backend/pkg/database/scrutiny_repository_tasks.go +++ b/webapp/backend/pkg/database/scrutiny_repository_tasks.go @@ -109,7 +109,7 @@ func (sr *scrutinyRepository) DownsampleScript(aggregationType string) string { |> toInt() temp_data - |> aggregateWindow(fn: mean, every: aggWindow) + |> aggregateWindow(fn: mean, every: aggWindow, createEmpty: false) |> to(bucket: destBucket, org: destOrg) `, sourceBucket,