fix selecting max_threads for MergingAggregatedBlockInputStream [#CLICKHOUSE-3156]

This commit is contained in:
Alexey Zatelepin 2017-07-18 23:07:59 +03:00 committed by alexey-milovidov
parent 25288ac4d5
commit 4866a37a2b

View File

@ -442,7 +442,7 @@ void InterpreterSelectQuery::executeSingleQuery()
if (to_stage > QueryProcessingStage::FetchColumns) if (to_stage > QueryProcessingStage::FetchColumns)
{ {
bool has_join = false; bool has_join = false;
bool has_where = false; bool has_where = false;
bool need_aggregate = false; bool need_aggregate = false;
bool has_having = false; bool has_having = false;
@ -1006,7 +1006,7 @@ void InterpreterSelectQuery::executeMergeAggregated(bool overflow_row, bool fina
executeUnion(); executeUnion();
/// Now merge the aggregated blocks /// Now merge the aggregated blocks
streams[0] = std::make_shared<MergingAggregatedBlockInputStream>(streams[0], params, final, max_streams); streams[0] = std::make_shared<MergingAggregatedBlockInputStream>(streams[0], params, final, settings.max_threads);
} }
else else
{ {