mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Simpler way to resize pipeline
This commit is contained in:
parent
6fe6e1fea5
commit
1187534545
@ -797,7 +797,7 @@ Pipe StorageFile::read(
|
|||||||
/// It happens if globs in file(path, ...) expands to empty set i.e. no files to process
|
/// It happens if globs in file(path, ...) expands to empty set i.e. no files to process
|
||||||
if (num_streams > 0 && num_streams < max_num_streams)
|
if (num_streams > 0 && num_streams < max_num_streams)
|
||||||
{
|
{
|
||||||
pipe.addTransform(std::make_shared<ResizeProcessor>(pipe.getHeader(), num_streams, max_num_streams));
|
pipe.resize(max_num_streams);
|
||||||
}
|
}
|
||||||
return pipe;
|
return pipe;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user