This commit is contained in:
Nikita Vasilev 2018-12-29 16:04:22 +03:00
parent f90cdca498
commit 33cf4c96e6

View File

@ -531,9 +531,7 @@ namespace DB
for (const auto index_part : part->index_parts) { for (const auto index_part : part->index_parts) {
const auto condition = index_part->createIndexConditionOnPart( const auto condition = index_part->createIndexConditionOnPart(
query_info, context, index_part->index->sample.getNames(), index_part->index->expr); query_info, context, index_part->index->sample.getNames(), index_part->index->expr);
if (condition->alwaysUnknownOrTrue()) { if (!condition->alwaysUnknownOrTrue()) {
continue;
} else {
ranges.ranges = condition->filterRanges(ranges.ranges); ranges.ranges = condition->filterRanges(ranges.ranges);
} }
} }