#pragma once #include #include namespace DB { /// Create source from prepared pipe. class ReadFromPreparedSource : public ISourceStep { public: explicit ReadFromPreparedSource(Pipe pipe_, std::shared_ptr context_); String getName() const override { return "ReadNothing"; } void initializePipeline(QueryPipeline & pipeline) override; private: Pipe pipe; std::shared_ptr context; }; }