Simpler way to resize pipeline

This commit is contained in:
Igor Nikonov 2023-04-09 21:26:39 +00:00
parent 6fe6e1fea5
commit 1187534545

View File

@ -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;
} }