Try fix perf

This commit is contained in:
Nikolai Kochetov 2020-10-13 11:36:15 +03:00
parent 7e58f99f64
commit 337098367b

View File

@ -1424,6 +1424,8 @@ void InterpreterSelectQuery::executeFetchColumns(
if (!max_block_size)
throw Exception("Setting 'max_block_size' cannot be zero", ErrorCodes::PARAMETER_OUT_OF_BOUND);
query_plan.setMaxThreads(max_threads_execute_query);
/// Initialize the initial data streams to which the query transforms are superimposed. Table or subquery or prepared input?
if (query_plan.isInitialized())
{
@ -1525,8 +1527,6 @@ void InterpreterSelectQuery::executeFetchColumns(
else
throw Exception("Logical error in InterpreterSelectQuery: nowhere to read", ErrorCodes::LOGICAL_ERROR);
query_plan.setMaxThreads(max_threads_execute_query);
/// Aliases in table declaration.
if (processing_stage == QueryProcessingStage::FetchColumns && alias_actions)
{