Fix build

This commit is contained in:
Dmitry Novik 2023-01-06 19:24:56 +00:00
parent 5f43a79ad6
commit 2ed4d3e8e6
2 changed files with 6 additions and 1 deletions

View File

@ -144,6 +144,11 @@ public:
*/
void resolveAsFunction(FunctionBasePtr function_value);
void resolveAsFunction(const FunctionOverloadResolverPtr & resolver)
{
resolveAsFunction(resolver->build(getArgumentColumns()));
}
/** Resolve function node as aggregate function.
* It is important that function name is updated with resolved function name.
* Main motivation for this is query tree optimizations.

View File

@ -108,7 +108,7 @@ public:
auto & arguments = match_function->getArguments().getNodes();
auto & patterns = identifier_to_patterns.at(arguments[0]);
arguments.push_back(std::make_shared<ConstantNode>(Field{std::move(patterns)}));
match_function->resolveAsFunction(match_function_ref->build(match_function->getArgumentTypes()));
match_function->resolveAsFunction(match_function_ref);
}
/// OR must have at least two arguments.