mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user