2018-06-07 13:28:39 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <ext/shared_ptr_helper.h>
|
2018-07-24 14:28:56 +00:00
|
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
2018-06-07 13:28:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
|
|
|
/// Implements the `mutations` system table, which provides information about the status of mutations
|
|
|
|
/// in the MergeTree tables.
|
2018-07-24 14:28:56 +00:00
|
|
|
class StorageSystemMutations : public ext::shared_ptr_helper<StorageSystemMutations>, public IStorageSystemOneBlock<StorageSystemMutations>
|
2018-06-07 13:28:39 +00:00
|
|
|
{
|
2019-08-26 19:07:29 +00:00
|
|
|
friend struct ext::shared_ptr_helper<StorageSystemMutations>;
|
2018-06-07 13:28:39 +00:00
|
|
|
public:
|
|
|
|
String getName() const override { return "SystemMutations"; }
|
|
|
|
|
2018-07-24 14:28:56 +00:00
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
2018-06-07 13:28:39 +00:00
|
|
|
|
|
|
|
protected:
|
2018-07-24 14:28:56 +00:00
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
|
|
|
|
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
|
2018-06-07 13:28:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|