Fix optimized cluster logic for optimize_skip_unused_shards

This commit is contained in:
Azat Khuzhin 2021-03-30 08:02:26 +03:00
parent fbb386dca5
commit e439914d38

View File

@ -954,7 +954,7 @@ ClusterPtr StorageDistributed::getOptimizedCluster(
throw Exception(exception_message.str(), ErrorCodes::UNABLE_TO_SKIP_UNUSED_SHARDS);
}
return cluster;
return {};
}
IColumn::Selector StorageDistributed::createSelector(const ClusterPtr cluster, const ColumnWithTypeAndName & result)