#pragma once #include #include #include namespace DB { class ASTCreateRowPolicyQuery; struct RowPolicy; class InterpreterCreateRowPolicyQuery : public IInterpreter { public: InterpreterCreateRowPolicyQuery(const ASTPtr & query_ptr_, Context & context_) : query_ptr(query_ptr_), context(context_) {} BlockIO execute() override; static void updateRowPolicyFromQuery(RowPolicy & policy, const ASTCreateRowPolicyQuery & query); private: ASTPtr query_ptr; Context & context; }; }