Update StorageDistributed.cpp

This commit is contained in:
alexey-milovidov 2018-11-21 07:02:56 +03:00 committed by GitHub
parent 866917ad32
commit 5cf9beabe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -270,7 +270,8 @@ BlockInputStreams StorageDistributed::read(
: ClusterProxy::SelectStreamFactory(
header, processed_stage, QualifiedTableName{remote_database, remote_table}, context.getExternalTables());
if (settings.distributed_optimize_skip_select_on_unused_shards) {
if (settings.distributed_optimize_skip_select_on_unused_shards)
{
auto optimizer = StorageDistributedShardsOptimizer();
auto smaller_cluster = optimizer.skipUnusedShards(cluster, query_info, sharding_key_expr, sharding_key_column_name);