2021-07-09 09:27:51 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Storages/System/IStorageSystemOneBlock.h>
|
|
|
|
|
2021-07-13 00:59:52 +00:00
|
|
|
|
2021-07-12 12:21:18 +00:00
|
|
|
namespace DB
|
|
|
|
{
|
2021-07-09 09:27:51 +00:00
|
|
|
|
|
|
|
class Context;
|
|
|
|
|
2021-07-13 00:59:52 +00:00
|
|
|
/** Implements system.warnings table that contains warnings about server configuration
|
|
|
|
* to be displayed in clickhouse-client.
|
|
|
|
*/
|
2022-05-03 06:43:28 +00:00
|
|
|
class StorageSystemWarnings final : public IStorageSystemOneBlock<StorageSystemWarnings>
|
2022-04-19 20:47:29 +00:00
|
|
|
{
|
2021-07-09 09:27:51 +00:00
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SystemWarnings"; }
|
|
|
|
|
|
|
|
static NamesAndTypesList getNamesAndTypes();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
using IStorageSystemOneBlock::IStorageSystemOneBlock;
|
|
|
|
|
|
|
|
void fillData(MutableColumns & res_columns, ContextPtr, const SelectQueryInfo &) const override;
|
|
|
|
};
|
|
|
|
}
|