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