Merge pull request #474 from travisturner/standard-time-import

During import, write to standard view as well as time views
This commit is contained in:
Travis Turner 2017-04-24 22:47:37 -05:00 committed by GitHub
commit 610c7f2d54

View file

@ -529,6 +529,9 @@ func (f *Frame) Import(rowIDs, columnIDs []uint64, timestamps []*time.Time) erro
inverse = []string{ViewInverse}
} else {
standard = ViewsByTime(ViewStandard, *timestamp, q)
// In order to match the logic of `SetBit()`, we want bits
// with timestamps to write to both time and standard views.
standard = append(standard, ViewStandard)
inverse = ViewsByTime(ViewInverse, *timestamp, q)
}