Fix executors.

This commit is contained in:
Nikolai Kochetov 2021-09-19 19:18:38 +03:00
parent a8443bef4d
commit 53e946ec25
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ PullingAsyncPipelineExecutor::~PullingAsyncPipelineExecutor()
const Block & PullingAsyncPipelineExecutor::getHeader() const
{
return pipeline.output->getHeader();
return lazy_format->getPort(IOutputFormat::PortKind::Main).getHeader();
}
static void threadFunction(PullingAsyncPipelineExecutor::Data & data, ThreadGroupStatusPtr thread_group, size_t num_threads)

View File

@ -36,7 +36,7 @@ PullingPipelineExecutor::~PullingPipelineExecutor()
const Block & PullingPipelineExecutor::getHeader() const
{
return pipeline.output->getHeader();
return pulling_format->getPort(IOutputFormat::PortKind::Main).getHeader();
}
bool PullingPipelineExecutor::pull(Chunk & chunk)