During import, write to standard view as well as time views

This commit is contained in:
Travis 2017-04-24 18:43:33 -05:00
parent 03aa9447a8
commit cd6b3f9605
No known key found for this signature in database
GPG key ID: 7F08008DFD9314C9

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)
}