1#pragma once
2
3#include <Core/Block.h>
4#include <Interpreters/IInterpreter.h>
5#include <Parsers/IAST_fwd.h>
6
7
8namespace DB
9{
10
11class Context;
12
13
14class InterpreterKillQueryQuery : public IInterpreter
15{
16public:
17 InterpreterKillQueryQuery(const ASTPtr & query_ptr_, Context & context_)
18 : query_ptr(query_ptr_), context(context_) {}
19
20 BlockIO execute() override;
21
22private:
23 Block getSelectResult(const String & columns, const String & table);
24
25 ASTPtr query_ptr;
26 Context & context;
27};
28
29
30}
31