ClickHouse/dbms/include/DB/Interpreters/InterpreterCheckQuery.h

25 lines
371 B
C
Raw Normal View History

2014-08-05 10:52:06 +00:00
#pragma once
#include <DB/Interpreters/Context.h>
2015-06-18 02:11:05 +00:00
#include <DB/Interpreters/IInterpreter.h>
2014-08-05 10:52:06 +00:00
namespace DB
{
2015-06-18 02:11:05 +00:00
class InterpreterCheckQuery : public IInterpreter
2014-08-05 10:52:06 +00:00
{
public:
InterpreterCheckQuery(ASTPtr query_ptr_, Context & context_);
2015-06-18 02:11:05 +00:00
BlockIO execute() override;
2014-08-05 10:52:06 +00:00
2015-10-12 14:53:16 +00:00
private:
Block getSampleBlock() const;
2014-08-05 10:52:06 +00:00
private:
ASTPtr query_ptr;
Context context;
2015-06-18 02:11:05 +00:00
Block result;
2014-08-05 10:52:06 +00:00
};
}