2014-08-05 10:52:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
2019-05-17 14:34:25 +00:00
|
|
|
#include <Core/Block.h>
|
2017-04-01 09:19:00 +00:00
|
|
|
#include <Interpreters/IInterpreter.h>
|
2019-05-17 14:34:25 +00:00
|
|
|
#include <Parsers/IAST_fwd.h>
|
2014-08-05 10:52:06 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2017-05-23 18:01:50 +00:00
|
|
|
class Context;
|
2017-10-13 19:13:41 +00:00
|
|
|
class Cluster;
|
2017-05-23 18:01:50 +00:00
|
|
|
|
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_);
|
2017-10-13 19:13:41 +00:00
|
|
|
|
2017-04-01 07:20:54 +00:00
|
|
|
BlockIO execute() override;
|
2014-08-05 10:52:06 +00:00
|
|
|
|
|
|
|
private:
|
2017-04-01 07:20:54 +00:00
|
|
|
ASTPtr query_ptr;
|
2017-10-13 19:13:41 +00:00
|
|
|
|
2017-05-23 18:01:50 +00:00
|
|
|
const Context & context;
|
2017-04-01 07:20:54 +00:00
|
|
|
Block result;
|
2014-08-05 10:52:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|