mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 18:02:24 +00:00
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <Storages/IStorage.h>
|
|
|
|
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<StorageSystemDetachedParts>,
|
|
public IStorage
|
|
{
|
|
friend struct ext::shared_ptr_helper<StorageSystemDetachedParts>;
|
|
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,
|
|
SelectQueryInfo & query_info,
|
|
const Context & context,
|
|
QueryProcessingStage::Enum /*processed_stage*/,
|
|
const size_t /*max_block_size*/,
|
|
const unsigned /*num_streams*/) override;
|
|
};
|
|
|
|
}
|