2020-06-02 23:47:32 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
|
|
|
/** Implements the `distribution_queue` system table, which allows you to view the INSERT queues for the Distributed tables.
|
|
|
|
*/
|
2022-05-03 06:43:28 +00:00
|
|
|
class StorageSystemDistributionQueue final : public IStorageSystemOneBlock<StorageSystemDistributionQueue>
|
2020-06-02 23:47:32 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemDistributionQueue"; }
|
|
|
|
|
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
|
2021-04-10 23:33:54 +00:00
|
|
|
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo & query_info) const override;
|
2020-06-02 23:47:32 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|