ClickHouse/dbms/include/DB/Interpreters/InterpreterCheckQuery.h
Alexey Arno 5f17c9d55d Merge
2015-10-12 17:53:16 +03:00

26 lines
409 B
C++

#pragma once
#include <DB/Interpreters/Context.h>
#include <DB/Interpreters/IInterpreter.h>
#include <DB/Parsers/ASTIdentifier.h>
namespace DB
{
class InterpreterCheckQuery : public IInterpreter
{
public:
InterpreterCheckQuery(ASTPtr query_ptr_, Context & context_);
BlockIO execute() override;
private:
Block getSampleBlock() const;
private:
ASTPtr query_ptr;
Context context;
Block result;
};
}