mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-12 02:23:14 +00:00
25 lines
371 B
C++
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;
|
|
};
|
|
|
|
}
|