standard code already in viewsByTimeRange (#2149)

This commit is contained in:
tgruben 2022-07-18 13:48:25 -05:00 committed by GitHub
parent 33a916c0f4
commit ccbc944eea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4464,14 +4464,10 @@ func (e *executor) executeExtractShard(ctx context.Context, qcx *Qcx, index stri
case FieldTypeTime:
// Handle a set field by listing the rows and then intersecting them with the filter.
timeArg := timeArgs[i]
var views []string
if timeArg.From.IsZero() && timeArg.To.IsZero() {
views = []string{viewStandard}
} else {
views, err = field.viewsByTimeRange(timeArg.From, timeArg.To)
if err != nil {
return ExtractedIDMatrix{}, errors.Wrap(err, "problem with from/to")
}
views, err := field.viewsByTimeRange(timeArg.From, timeArg.To)
if err != nil {
return ExtractedIDMatrix{}, errors.Wrap(err, "problem with from/to")
}
dedup := make(map[uint64]map[uint64]struct{})