mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
48ed301e56
This reverts commit 720781a7bc
.
26 lines
735 B
C++
26 lines
735 B
C++
#include <DB/Parsers/IAST.h>
|
|
#include <DB/Parsers/ASTQueryWithOutput.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class ASTKillQueryQuery : public ASTQueryWithOutput
|
|
{
|
|
public:
|
|
ASTPtr where_expression; // expression to filter processes from system.processes table
|
|
bool sync = false; // SYNC or ASYNC mode
|
|
bool test = false; // does it TEST mode? (doesn't cancel queries just checks and shows them)
|
|
|
|
ASTKillQueryQuery() = default;
|
|
|
|
ASTKillQueryQuery(const StringRange range_) : ASTQueryWithOutput(range_) {}
|
|
|
|
ASTPtr clone() const override { return std::make_shared<ASTKillQueryQuery>(*this); }
|
|
|
|
String getID() const override;
|
|
|
|
void formatQueryImpl(const FormatSettings & settings, FormatState & state, FormatStateStacked frame) const override;
|
|
};
|
|
|
|
}
|