#include #include #include #include #include #include namespace DB { StorageSystemOne::StorageSystemOne(const std::string & name_) : name(name_) { columns.push_back(NameAndTypePair("dummy", new DataTypeUInt8)); } StoragePtr StorageSystemOne::create(const std::string & name_) { return (new StorageSystemOne(name_))->thisPtr(); } BlockInputStreams StorageSystemOne::read( const Names & column_names, ASTPtr query, const Settings & settings, QueryProcessingStage::Enum & processed_stage, size_t max_block_size, unsigned threads) { check(column_names); processed_stage = QueryProcessingStage::FetchColumns; Block block; ColumnWithNameAndType col; col.name = "dummy"; col.type = new DataTypeUInt8; col.column = new ColumnConstUInt8(1, 0); block.insert(col); return BlockInputStreams(1, new OneBlockInputStream(block)); } }