1#pragma once
2
3#include <Interpreters/IInterpreter.h>
4#include <Parsers/IAST_fwd.h>
5
6
7namespace DB
8{
9
10class Context;
11
12/** Allows you add or remove a column in the table.
13 * It also allows you to manipulate the partitions of the MergeTree family tables.
14 */
15class InterpreterAlterQuery : public IInterpreter
16{
17public:
18 InterpreterAlterQuery(const ASTPtr & query_ptr_, const Context & context_);
19
20 BlockIO execute() override;
21
22private:
23 ASTPtr query_ptr;
24
25 const Context & context;
26};
27
28}
29