提交 34cd1b97 编写于 作者: A Alexey Milovidov

Preparations, part 6 [#CLICKHOUSE-31].

上级 46644aaa
...@@ -32,7 +32,7 @@ public: ...@@ -32,7 +32,7 @@ public:
virtual std::string getName() const = 0; virtual std::string getName() const = 0;
/// Create storage according to the query /// Create storage according to the query
virtual StoragePtr execute(ASTPtr ast_function, const Context & context) const = 0; virtual StoragePtr execute(const ASTPtr & ast_function, const Context & context) const = 0;
virtual ~ITableFunction() {}; virtual ~ITableFunction() {};
}; };
......
...@@ -53,7 +53,7 @@ static NamesAndTypesList chooseColumns(const String & source_database, const Str ...@@ -53,7 +53,7 @@ static NamesAndTypesList chooseColumns(const String & source_database, const Str
} }
StoragePtr TableFunctionMerge::execute(ASTPtr ast_function, const Context & context) const StoragePtr TableFunctionMerge::execute(const ASTPtr & ast_function, const Context & context) const
{ {
ASTs & args_func = typeid_cast<ASTFunction &>(*ast_function).children; ASTs & args_func = typeid_cast<ASTFunction &>(*ast_function).children;
......
...@@ -14,7 +14,7 @@ class TableFunctionMerge: public ITableFunction ...@@ -14,7 +14,7 @@ class TableFunctionMerge: public ITableFunction
{ {
public: public:
std::string getName() const override { return "merge"; } std::string getName() const override { return "merge"; }
StoragePtr execute(ASTPtr ast_function, const Context & context) const override; StoragePtr execute(const ASTPtr & ast_function, const Context & context) const override;
}; };
......
...@@ -179,7 +179,7 @@ static std::vector<String> parseDescription(const String & description, size_t l ...@@ -179,7 +179,7 @@ static std::vector<String> parseDescription(const String & description, size_t l
} }
StoragePtr TableFunctionRemote::execute(ASTPtr ast_function, const Context & context) const StoragePtr TableFunctionRemote::execute(const ASTPtr & ast_function, const Context & context) const
{ {
ASTs & args_func = typeid_cast<ASTFunction &>(*ast_function).children; ASTs & args_func = typeid_cast<ASTFunction &>(*ast_function).children;
......
...@@ -16,7 +16,7 @@ class TableFunctionRemote : public ITableFunction ...@@ -16,7 +16,7 @@ class TableFunctionRemote : public ITableFunction
{ {
public: public:
std::string getName() const override { return "remote"; } std::string getName() const override { return "remote"; }
StoragePtr execute(ASTPtr ast_function, const Context & context) const override; StoragePtr execute(const ASTPtr & ast_function, const Context & context) const override;
}; };
} }
...@@ -20,7 +20,7 @@ namespace ErrorCodes ...@@ -20,7 +20,7 @@ namespace ErrorCodes
extern const int BAD_ARGUMENTS; extern const int BAD_ARGUMENTS;
} }
StoragePtr TableFunctionShardByHash::execute(ASTPtr ast_function, const Context & context) const StoragePtr TableFunctionShardByHash::execute(const ASTPtr & ast_function, const Context & context) const
{ {
ASTs & args_func = typeid_cast<ASTFunction &>(*ast_function).children; ASTs & args_func = typeid_cast<ASTFunction &>(*ast_function).children;
......
...@@ -15,7 +15,7 @@ class TableFunctionShardByHash : public ITableFunction ...@@ -15,7 +15,7 @@ class TableFunctionShardByHash : public ITableFunction
{ {
public: public:
std::string getName() const override { return "shardByHash"; } std::string getName() const override { return "shardByHash"; }
StoragePtr execute(ASTPtr ast_function, const Context & context) const override; StoragePtr execute(const ASTPtr & ast_function, const Context & context) const override;
}; };
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册