ClickHouse/dbms/src/DataStreams/PartialSortingBlockInputStream.cpp

19 lines
266 B
C++

#include <Interpreters/sortBlock.h>
#include <DataStreams/PartialSortingBlockInputStream.h>
namespace DB
{
Block PartialSortingBlockInputStream::readImpl()
{
Block res = children.back()->read();
sortBlock(res, description, limit);
return res;
}
}