ClickHouse/dbms/src/Interpreters/InterpreterExplainQuery.h

33 lines
472 B
C++
Raw Normal View History

2018-09-21 15:20:23 +00:00
#pragma once
#include <Interpreters/IInterpreter.h>
namespace DB
{
class IAST;
using ASTPtr = std::shared_ptr<IAST>;
/// Returns single row with explain results
class InterpreterExplainQuery : public IInterpreter
{
public:
2018-11-24 01:48:06 +00:00
InterpreterExplainQuery(const ASTPtr & query_, const Context &)
2018-09-21 15:20:23 +00:00
: query(query_)
{}
BlockIO execute() override;
static Block getSampleBlock();
private:
ASTPtr query;
BlockInputStreamPtr executeImpl();
};
}