diff --git a/src/Analyzer/Passes/FuseFunctionsPass.cpp b/src/Analyzer/Passes/FuseFunctionsPass.cpp index 7c5277e2afb..ebb81ca6049 100644 --- a/src/Analyzer/Passes/FuseFunctionsPass.cpp +++ b/src/Analyzer/Passes/FuseFunctionsPass.cpp @@ -79,14 +79,14 @@ FunctionNodePtr createResolvedAggregateFunction(const String & name, const Query function_node->resolveAsAggregateFunction(aggregate_function, aggregate_function->getReturnType()); function_node->getArguments().getNodes() = { argument }; - function_node->getArgumentsNode() = std::make_shared(QueryTreeNodes{argument}); + function_node->getArguments().getNodes() = { argument }; if (!parameters.empty()) { QueryTreeNodes parameter_nodes; for (const auto & param : parameters) parameter_nodes.emplace_back(std::make_shared(param)); - function_node->getParametersNode() = std::make_shared(std::move(parameter_nodes)); + function_node->getParameters().getNodes() = std::move(parameter_nodes); } return function_node;