diff --git a/ast.go b/ast.go index 140a42c..403c131 100644 --- a/ast.go +++ b/ast.go @@ -1859,6 +1859,11 @@ func (s *SelectStatement) HasDimensionWildcard() bool { return false } +// CleanGroupByIntervalCache cleans the cached time interval. +func (s *SelectStatement) CleanGroupByIntervalCache() { + s.groupByInterval = 0 +} + // GroupByInterval extracts the time interval, if specified. func (s *SelectStatement) GroupByInterval() (time.Duration, error) { // return if we've already pulled it out