2020-11-24 07:58:21 +00:00
|
|
|
#pragma once
|
2022-04-19 20:47:29 +00:00
|
|
|
|
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>
|
2021-09-15 18:06:20 +00:00
|
|
|
#include <future>
|
2020-11-24 07:58:21 +00:00
|
|
|
|
|
|
|
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
|
|
|
*/
|
2022-05-03 06:43:28 +00:00
|
|
|
class StorageSystemDDLWorkerQueue final : public IStorageSystemOneBlock<StorageSystemDDLWorkerQueue>
|
2020-11-24 07:58:21 +00:00
|
|
|
{
|
|
|
|
protected:
|
2021-09-15 18:06:20 +00:00
|
|
|
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo &) const override;
|
2020-11-24 07:58:21 +00:00
|
|
|
|
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemDDLWorkerQueue"; }
|
|
|
|
|
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
|
|
|
};
|
|
|
|
}
|