Fix predicate-based ValueMatcher behavior for IncrementalIndex on missing columns.

Missing columns should be treated the same as columns containing 100% nulls.
This commit is contained in:
Gian Merlino 2016-03-25 10:23:56 -07:00
parent ef0bc5d64f
commit 4ac9e03161
1 changed files with 1 additions and 1 deletions

View File

@ -707,7 +707,7 @@ public class IncrementalIndexStorageAdapter implements StorageAdapter
{
IncrementalIndex.DimensionDesc dimensionDesc = index.getDimension(dimension);
if (dimensionDesc == null) {
return new BooleanValueMatcher(false);
return new BooleanValueMatcher(predicate.apply(null));
}
final int dimIndex = dimensionDesc.getIndex();
final IncrementalIndex.DimDim dimDim = dimensionDesc.getValues();