mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
Try fix perf
This commit is contained in:
parent
7e58f99f64
commit
337098367b
@ -1424,6 +1424,8 @@ void InterpreterSelectQuery::executeFetchColumns(
|
|||||||
if (!max_block_size)
|
if (!max_block_size)
|
||||||
throw Exception("Setting 'max_block_size' cannot be zero", ErrorCodes::PARAMETER_OUT_OF_BOUND);
|
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?
|
/// Initialize the initial data streams to which the query transforms are superimposed. Table or subquery or prepared input?
|
||||||
if (query_plan.isInitialized())
|
if (query_plan.isInitialized())
|
||||||
{
|
{
|
||||||
@ -1525,8 +1527,6 @@ void InterpreterSelectQuery::executeFetchColumns(
|
|||||||
else
|
else
|
||||||
throw Exception("Logical error in InterpreterSelectQuery: nowhere to read", ErrorCodes::LOGICAL_ERROR);
|
throw Exception("Logical error in InterpreterSelectQuery: nowhere to read", ErrorCodes::LOGICAL_ERROR);
|
||||||
|
|
||||||
query_plan.setMaxThreads(max_threads_execute_query);
|
|
||||||
|
|
||||||
/// Aliases in table declaration.
|
/// Aliases in table declaration.
|
||||||
if (processing_stage == QueryProcessingStage::FetchColumns && alias_actions)
|
if (processing_stage == QueryProcessingStage::FetchColumns && alias_actions)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user