2021-05-09 09:47:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <Interpreters/IInterpreter.h>
|
2021-08-23 14:31:58 +00:00
|
|
|
|
2021-05-09 09:47:29 +00:00
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
2021-07-19 23:34:04 +00:00
|
|
|
class Context;
|
2021-05-09 09:47:29 +00:00
|
|
|
|
2022-09-24 21:24:39 +00:00
|
|
|
class InterpreterCreateFunctionQuery : public IInterpreter, WithMutableContext
|
2021-05-09 09:47:29 +00:00
|
|
|
{
|
|
|
|
public:
|
2022-09-24 21:24:39 +00:00
|
|
|
InterpreterCreateFunctionQuery(const ASTPtr & query_ptr_, ContextMutablePtr context_)
|
|
|
|
: WithMutableContext(context_), query_ptr(query_ptr_)
|
|
|
|
{
|
|
|
|
}
|
2021-05-09 09:47:29 +00:00
|
|
|
|
|
|
|
BlockIO execute() override;
|
|
|
|
|
2021-05-10 22:35:22 +00:00
|
|
|
private:
|
2021-05-09 09:47:29 +00:00
|
|
|
ASTPtr query_ptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|