2020-11-24 07:58:21 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-12-06 00:24:18 +00:00
|
|
|
#include <Poco/Util/Application.h>
|
|
|
|
#include <Poco/Util/LayeredConfiguration.h>
|
|
|
|
|
2020-12-30 10:13:26 +00:00
|
|
|
#include <Interpreters/DDLWorker.h>
|
2020-11-24 07:58:21 +00:00
|
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
|
|
|
#include <ext/shared_ptr_helper.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
class Context;
|
|
|
|
|
|
|
|
|
2020-12-15 08:08:18 +00:00
|
|
|
/** System table "distributed_ddl_queue" with list of queries that are currently in the DDL worker queue.
|
2020-11-24 07:58:21 +00:00
|
|
|
*/
|
|
|
|
class StorageSystemDDLWorkerQueue final : public ext::shared_ptr_helper<StorageSystemDDLWorkerQueue>,
|
|
|
|
public IStorageSystemOneBlock<StorageSystemDDLWorkerQueue>
|
|
|
|
{
|
|
|
|
friend struct ext::shared_ptr_helper<StorageSystemDDLWorkerQueue>;
|
2020-12-06 00:24:18 +00:00
|
|
|
Poco::Util::LayeredConfiguration & config = Poco::Util::Application::instance().config();
|
2020-11-24 07:58:21 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void fillData(MutableColumns & res_columns, const Context & context, const SelectQueryInfo & query_info) const override;
|
|
|
|
|
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemDDLWorkerQueue"; }
|
|
|
|
|
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
|
|
|
};
|
|
|
|
}
|