mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 13:42:02 +00:00
d93b9a57f6
Now after changing Context.h 488 modules will be recompiled instead of 582.
33 lines
523 B
C++
33 lines
523 B
C++
#pragma once
|
|
|
|
#include <Interpreters/IInterpreter.h>
|
|
#include <Parsers/IAST_fwd.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
/// Returns single row with explain results
|
|
class InterpreterExplainQuery : public IInterpreter
|
|
{
|
|
public:
|
|
InterpreterExplainQuery(const ASTPtr & query_, const Context & context_)
|
|
: query(query_), context(context_)
|
|
{}
|
|
|
|
BlockIO execute() override;
|
|
|
|
static Block getSampleBlock();
|
|
|
|
private:
|
|
ASTPtr query;
|
|
const Context & context;
|
|
|
|
BlockInputStreamPtr executeImpl();
|
|
};
|
|
|
|
|
|
}
|