#include #include #include #include namespace DB { StorageValues::StorageValues(const std::string & database_name_, const std::string & table_name_, const ColumnsDescription & columns_, const Block & res_block_) : database_name(database_name_), table_name(table_name_), res_block(res_block_) { setColumns(columns_); } BlockInputStreams StorageValues::read( const Names & column_names, const SelectQueryInfo & /*query_info*/, const Context & /*context*/, QueryProcessingStage::Enum /*processed_stage*/, size_t /*max_block_size*/, unsigned /*num_streams*/) { check(column_names, true); return BlockInputStreams(1, std::make_shared(res_block)); } }