mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Update QueryPipeline.
This commit is contained in:
parent
23069ca6d0
commit
d4f11af817
@ -515,8 +515,8 @@ void QueryPipeline::setProgressCallback(const ProgressCallback & callback)
|
||||
{
|
||||
for (auto & processor : processors)
|
||||
{
|
||||
if (auto * source = typeid_cast<SourceFromInputStream *>(processor.get()))
|
||||
source->getStream().setProgressCallback(callback);
|
||||
if (auto * source = typeid_cast<ISourceWithProgress *>(processor.get()))
|
||||
source->setProgressCallback(callback);
|
||||
|
||||
if (auto * source = typeid_cast<CreatingSetsTransform *>(processor.get()))
|
||||
source->setProgressCallback(callback);
|
||||
@ -527,8 +527,8 @@ void QueryPipeline::setProcessListElement(QueryStatus * elem)
|
||||
{
|
||||
for (auto & processor : processors)
|
||||
{
|
||||
if (auto * source = typeid_cast<SourceFromInputStream *>(processor.get()))
|
||||
source->getStream().setProcessListElement(elem);
|
||||
if (auto * source = dynamic_cast<ISourceWithProgress *>(processor.get()))
|
||||
source->setProcessListElement(elem);
|
||||
|
||||
if (auto * source = typeid_cast<CreatingSetsTransform *>(processor.get()))
|
||||
source->setProcessListElement(elem);
|
||||
|
Loading…
Reference in New Issue
Block a user