Fix performance regression from #2753 in IndexMerger (#2841)

This commit is contained in:
Jonathan Wei 2016-04-14 21:39:41 -07:00 committed by Fangjin Yang
parent a26134575b
commit b534f7203c
1 changed files with 4 additions and 3 deletions

View File

@ -946,9 +946,6 @@ public class IndexMerger
}
MutableBitmap bitset = bitmapSerdeFactory.getBitmapFactory().makeEmptyMutableBitmap();
if ((dictId == 0) && (Iterables.getFirst(dimVals, "") == null)) {
bitset.or(nullRowsList.get(i));
}
for (Integer row : CombiningIterable.createSplatted(
convertedInverteds,
Ordering.<Integer>natural().nullsFirst()
@ -958,6 +955,10 @@ public class IndexMerger
}
}
if ((dictId == 0) && (Iterables.getFirst(dimVals, "") == null)) {
bitset.or(nullRowsList.get(i));
}
writer.write(
bitmapSerdeFactory.getBitmapFactory().makeImmutableBitmap(bitset)
);