Potential fix for custom key tests

This commit is contained in:
Igor Nikonov 2023-08-05 00:05:50 +00:00
parent 5ef0cd9646
commit 2bda97d8f7

View File

@ -240,7 +240,8 @@ void ReadFromRemote::addPipe(Pipes & pipes, const ClusterProxy::SelectStreamFact
shard.shard_info.pool, query_string, output_stream->header, context, throttler, scalars, external_tables, stage);
remote_query_executor->setLogger(log);
remote_query_executor->setPoolMode(PoolMode::GET_ONE);
if (context->getParallelReplicasMode() == Context::ParallelReplicasMode::READ_TASKS)
remote_query_executor->setPoolMode(PoolMode::GET_ONE);
if (!table_func_ptr)
remote_query_executor->setMainTable(shard.main_table ? shard.main_table : main_table);