#pragma once #include namespace DB { class SourceFromSingleChunk : public ISource { /// If the source consists of multiple chunks you can instead use SourceFromChunks. public: SourceFromSingleChunk(Block header, Chunk chunk_); explicit SourceFromSingleChunk(Block data); String getName() const override; protected: Chunk generate() override; private: Chunk chunk; }; }