diff --git a/src/query/src/qFilter.c b/src/query/src/qFilter.c index 0d9fdb814a5af9df0901cf0c6d61e2a12554cfea..3387956730383141491e37323b316fd0b2ee215c 100644 --- a/src/query/src/qFilter.c +++ b/src/query/src/qFilter.c @@ -2787,6 +2787,10 @@ int32_t filterRmUnitByRange(SFilterInfo *info, SDataStatis *pDataStatis, int32_t info->blkUnitRes[k] = -1; rmUnit = 1; continue; + } else { + // when there are values and nulls in this block, no unit can produce all true + // or all false. so no unit can be removed + continue; } }