2015-06-18 02:11:05 +00:00
|
|
|
#pragma once
|
|
|
|
|
2017-01-21 04:24:28 +00:00
|
|
|
#include <DB/Core/QueryProcessingStage.h>
|
2015-06-18 02:11:05 +00:00
|
|
|
#include <DB/Interpreters/IInterpreter.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2016-12-12 07:24:56 +00:00
|
|
|
class Context;
|
2017-01-21 04:24:28 +00:00
|
|
|
class IAST;
|
|
|
|
using ASTPtr = std::shared_ptr<IAST>;
|
|
|
|
|
2016-12-12 07:24:56 +00:00
|
|
|
|
2015-06-18 02:11:05 +00:00
|
|
|
class InterpreterFactory
|
|
|
|
{
|
|
|
|
public:
|
2016-05-28 12:22:22 +00:00
|
|
|
static std::unique_ptr<IInterpreter> get(
|
2015-06-18 02:11:05 +00:00
|
|
|
ASTPtr & query,
|
|
|
|
Context & context,
|
|
|
|
QueryProcessingStage::Enum stage = QueryProcessingStage::Complete);
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|