mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Update TreeExecutor.
This commit is contained in:
parent
e6a30feed0
commit
426a8fd6a2
@ -3,6 +3,7 @@
|
|||||||
#include <Interpreters/ProcessList.h>
|
#include <Interpreters/ProcessList.h>
|
||||||
#include <stack>
|
#include <stack>
|
||||||
#include <Processors/Sources/SourceFromInputStream.h>
|
#include <Processors/Sources/SourceFromInputStream.h>
|
||||||
|
#include <Processors/Transforms/AggregatingTransform.h>
|
||||||
|
|
||||||
namespace DB
|
namespace DB
|
||||||
{
|
{
|
||||||
@ -215,7 +216,21 @@ Block TreeExecutorBlockInputStream::readImpl()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (input_port->hasData())
|
if (input_port->hasData())
|
||||||
return getHeader().cloneWithColumns(input_port->pull().detachColumns());
|
{
|
||||||
|
auto chunk = input_port->pull();
|
||||||
|
Block block = getHeader().cloneWithColumns(chunk.detachColumns());
|
||||||
|
|
||||||
|
if (auto & info = chunk.getChunkInfo())
|
||||||
|
{
|
||||||
|
if (auto * agg_info = typeid_cast<const AggregatedChunkInfo *>(info.get()))
|
||||||
|
{
|
||||||
|
block.info.bucket_num = agg_info->bucket_num;
|
||||||
|
block.info.is_overflows = agg_info->is_overflows;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return block;
|
||||||
|
}
|
||||||
|
|
||||||
execute(false);
|
execute(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user