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": {