don't hide error getting sign bitmap

This commit is contained in:
Matt Jaffee 2020-12-28 11:14:04 -06:00
parent 446950979a
commit 27ca9dab36
No known key found for this signature in database
GPG key ID: 08A3DFFF987B11BF

View file

@ -1552,8 +1552,7 @@ func executeDistinctShardBSI(ctx context.Context, qcx *Qcx, idx *Index, fieldNam
signBitmap, err := tx.OffsetRange(index, fieldName, view, shard, ShardWidth*shard, ShardWidth*1, ShardWidth*2)
if err != nil {
// TODO wtf... if there's any error getting the sign bitmap we just return an empty result and move on?
return result, nil
return result, errors.Wrap(err, "getting sign bitmap")
}
dataBitmaps := make([]*roaring.Bitmap, depth)