ClickHouse/dbms/include/DB/Interpreters/InterpreterCheckQuery.h
2016-06-07 11:23:15 +03:00

25 lines
371 B
C++

#pragma once
#include <DB/Interpreters/Context.h>
#include <DB/Interpreters/IInterpreter.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;
};
}