From dd3e4a6305bc1ab9970ebd22a26111d8532df283 Mon Sep 17 00:00:00 2001 From: Tomasz Date: Wed, 10 Jan 2024 14:16:53 +0100 Subject: [PATCH] Always include rollup field --- common_spec_types.go | 2 +- supervisor_types_test.go | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/common_spec_types.go b/common_spec_types.go index a48127b..a6e6e7b 100644 --- a/common_spec_types.go +++ b/common_spec_types.go @@ -148,7 +148,7 @@ type GranularitySpec struct { Type string `json:"type"` SegmentGranularity string `json:"segmentGranularity,omitempty"` QueryGranularity *QueryGranularitySpec `json:"queryGranularity,omitempty"` - Rollup bool `json:"rollup,omitempty"` + Rollup bool `json:"rollup"` Intervals []string `json:"intervals,omitempty"` } diff --git a/supervisor_types_test.go b/supervisor_types_test.go index 67ba82e..84dcd28 100644 --- a/supervisor_types_test.go +++ b/supervisor_types_test.go @@ -80,7 +80,8 @@ var jsonBasic = `{ "granularitySpec": { "type": "uniform", "segmentGranularity": "DAY", - "queryGranularity": "none" + "queryGranularity": "none", + "rollup": false } }, "ioConfig": { @@ -151,7 +152,8 @@ var jsonWithTypedDimensions = `{ "granularitySpec": { "type": "uniform", "segmentGranularity": "DAY", - "queryGranularity": "none" + "queryGranularity": "none", + "rollup": false } }, "ioConfig": { @@ -209,7 +211,8 @@ var jsonWithSqlInputSource = `{ "granularitySpec": { "type": "uniform", "segmentGranularity": "DAY", - "queryGranularity": "none" + "queryGranularity": "none", + "rollup": false } }, "ioConfig": {