This commit is contained in:
Albert Kidrachev 2020-05-25 03:32:08 +03:00
parent 96260cf33a
commit 3abf7b7dcd

View File

@ -2109,7 +2109,7 @@ void InterpreterSelectQuery::executeOrder(QueryPipeline & pipeline, InputSorting
if (stream_type != QueryPipeline::StreamType::Main)
return nullptr;
return std::make_shared<PartialSortingTransform>(header, output_order_descr, limit);
return std::make_shared<OptimizedPartialSortingTransform>(header, output_order_descr, limit);
});
pipeline.addSimpleTransform([&](const Block & header, QueryPipeline::StreamType stream_type) -> ProcessorPtr