Skip to content

Commit

Permalink
aggtrigger length check
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketbitz committed Jun 26, 2018
1 parent 006ead1 commit 24c9eec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/ondiskagg/aggtrigger/aggtrigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ func (s *OnDiskAggTrigger) writeAggregates(
return err
}

if len(slc.GetEpoch()) == 0 {
return nil
}

// decide whether to apply market-hour filter
applyingFilter := false
if s.filter == "nasdaq" && window.Duration() >= utils.Day {
Expand Down

0 comments on commit 24c9eec

Please sign in to comment.