From 27ca9dab369e42349a34e23cbb39ef13441c4938 Mon Sep 17 00:00:00 2001 From: Matt Jaffee Date: Mon, 28 Dec 2020 11:14:04 -0600 Subject: [PATCH] don't hide error getting sign bitmap --- executor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/executor.go b/executor.go index 190ce07f3..01db6daff 100644 --- a/executor.go +++ b/executor.go @@ -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)