#pragma once #include namespace DB { /** * Implements system table 'detached_parts' which allows to get information * about detached data parts for tables of MergeTree family. * We don't use StorageSystemPartsBase, because it introduces virtual _state * column and column aliases which we don't need. */ class StorageSystemDetachedParts final : public ext::shared_ptr_helper, public IStorage { friend struct ext::shared_ptr_helper; public: std::string getName() const override { return "SystemDetachedParts"; } protected: explicit StorageSystemDetachedParts(const StorageID & table_id_); Pipe read( const Names & /* column_names */, const StorageMetadataPtr & metadata_snapshot, const SelectQueryInfo & query_info, const Context & context, QueryProcessingStage::Enum /*processed_stage*/, const size_t /*max_block_size*/, const unsigned /*num_streams*/) override; }; }