2021-05-14 22:43:04 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-10-27 08:28:21 +00:00
|
|
|
#include <Parsers/IAST.h>
|
|
|
|
#include <Parsers/ASTQueryWithOnCluster.h>
|
|
|
|
|
2021-05-14 22:43:04 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2021-10-27 08:28:21 +00:00
|
|
|
class ASTDropFunctionQuery : public IAST, public ASTQueryWithOnCluster
|
2021-05-14 22:43:04 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
String function_name;
|
|
|
|
|
2021-10-20 10:05:57 +00:00
|
|
|
bool if_exists = false;
|
|
|
|
|
2021-05-14 22:43:04 +00:00
|
|
|
String getID(char) const override { return "DropFunctionQuery"; }
|
|
|
|
|
|
|
|
ASTPtr clone() const override;
|
|
|
|
|
|
|
|
void formatImpl(const FormatSettings & s, FormatState & state, FormatStateStacked frame) const override;
|
2021-10-27 08:28:21 +00:00
|
|
|
|
|
|
|
ASTPtr getRewrittenASTWithoutOnCluster(const std::string &) const override { return removeOnCluster<ASTDropFunctionQuery>(clone()); }
|
2021-05-14 22:43:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|