Skip to content

Commit

Permalink
Merge pull request #14 from h2oai/tomasz/always-include-rollup
Browse files Browse the repository at this point in the history
Always include rollup field
  • Loading branch information
tomasz-h2o authored Jan 15, 2024
2 parents aaa0d22 + dd3e4a6 commit c5c372f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common_spec_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down
9 changes: 6 additions & 3 deletions supervisor_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ var jsonBasic = `{
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity": "none"
"queryGranularity": "none",
"rollup": false
}
},
"ioConfig": {
Expand Down Expand Up @@ -151,7 +152,8 @@ var jsonWithTypedDimensions = `{
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity": "none"
"queryGranularity": "none",
"rollup": false
}
},
"ioConfig": {
Expand Down Expand Up @@ -209,7 +211,8 @@ var jsonWithSqlInputSource = `{
"granularitySpec": {
"type": "uniform",
"segmentGranularity": "DAY",
"queryGranularity": "none"
"queryGranularity": "none",
"rollup": false
}
},
"ioConfig": {
Expand Down

0 comments on commit c5c372f

Please sign in to comment.