#pragma once #include #include #include namespace DB { /// Returns single row with explain results class InterpreterExplainQuery : public IInterpreter, WithContext { public: InterpreterExplainQuery(const ASTPtr & query_, ContextPtr context_) : WithContext(context_), query(query_) { } BlockIO execute() override; static Block getSampleBlock(ASTExplainQuery::ExplainKind kind); private: ASTPtr query; QueryPipeline executeImpl(); }; }