Fix bug where group by times that are less than duration of a shard but would require a split would not be calculated properly.
parent
31bfc03728
commit
8947bb7673
|
@ -256,7 +256,7 @@ func (self *ShardData) ShouldAggregateLocally(querySpec *parser.QuerySpec) bool
|
||||||
if groupByInterval == nil {
|
if groupByInterval == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if groupByInterval.Seconds() <= self.shardDuration.Seconds() {
|
if self.shardDuration%*groupByInterval == 0 {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue