ClickHouse/src/Storages/System/StorageSystemDDLWorkerQueue.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
686 B
C++
Raw Normal View History

#pragma once
2020-12-30 10:13:26 +00:00
#include <Interpreters/DDLWorker.h>
#include <Storages/System/IStorageSystemOneBlock.h>
2021-09-15 18:06:20 +00:00
#include <future>
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.
*/
class StorageSystemDDLWorkerQueue final : public IStorageSystemOneBlock<StorageSystemDDLWorkerQueue>
{
protected:
2021-09-15 18:06:20 +00:00
void fillData(MutableColumns & res_columns, ContextPtr context, const SelectQueryInfo &) const override;
using IStorageSystemOneBlock::IStorageSystemOneBlock;
public:
std::string getName() const override { return "SystemDDLWorkerQueue"; }
static NamesAndTypesList getNamesAndTypes();
};
}