ClickHouse/dbms/src/Interpreters/InterpreterCheckQuery.h

26 lines
387 B
C++
Raw Normal View History

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