Skip to content

Commit

Permalink
Merge pull request #97 from alpacahq/fix/aggtrigger-len-check
Browse files Browse the repository at this point in the history
aggtrigger length check
  • Loading branch information
rocketbitz authored Jun 26, 2018
2 parents 9134be2 + 24c9eec commit 0d121d7
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 0d121d7

Please sign in to comment.