mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
27 lines
413 B
C++
27 lines
413 B
C++
#pragma once
|
|
|
|
#include <Interpreters/IInterpreter.h>
|
|
#include <Parsers/IAST.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class Context;
|
|
|
|
class InterpreterCheckQuery : public IInterpreter
|
|
{
|
|
public:
|
|
InterpreterCheckQuery(const ASTPtr & query_ptr_, const Context & context_);
|
|
BlockIO execute() override;
|
|
|
|
private:
|
|
Block getSampleBlock() const;
|
|
|
|
private:
|
|
ASTPtr query_ptr;
|
|
const Context & context;
|
|
Block result;
|
|
};
|
|
|
|
}
|