#include #include #include #include #include namespace DB { StorageSystemOne::StorageSystemOne(const std::string & name_) : name(name_) { columns = ColumnsDescription({{"dummy", std::make_shared()}}); } BlockInputStreams StorageSystemOne::read( const Names & column_names, const SelectQueryInfo &, const Context &, QueryProcessingStage::Enum & processed_stage, const size_t /*max_block_size*/, const unsigned /*num_streams*/) { check(column_names); processed_stage = QueryProcessingStage::FetchColumns; return BlockInputStreams(1, std::make_shared( Block{ColumnWithTypeAndName( DataTypeUInt8().createColumnConst(1, UInt64(0))->convertToFullColumnIfConst(), std::make_shared(), "dummy")})); } }