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

23 lines
340 B
C
Raw Normal View History

2014-08-05 10:52:06 +00:00
#pragma once
#include <DB/Interpreters/Context.h>
#include <DB/Parsers/ASTIdentifier.h>
namespace DB
{
class InterpreterCheckQuery
{
public:
InterpreterCheckQuery(ASTPtr query_ptr_, Context & context_);
BlockInputStreamPtr execute();
DB::Block getSampleBlock();
private:
ASTPtr query_ptr;
Context context;
DB::Block result;
};
}