mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
Fix build
This commit is contained in:
parent
5f43a79ad6
commit
2ed4d3e8e6
@ -144,6 +144,11 @@ public:
|
|||||||
*/
|
*/
|
||||||
void resolveAsFunction(FunctionBasePtr function_value);
|
void resolveAsFunction(FunctionBasePtr function_value);
|
||||||
|
|
||||||
|
void resolveAsFunction(const FunctionOverloadResolverPtr & resolver)
|
||||||
|
{
|
||||||
|
resolveAsFunction(resolver->build(getArgumentColumns()));
|
||||||
|
}
|
||||||
|
|
||||||
/** Resolve function node as aggregate function.
|
/** Resolve function node as aggregate function.
|
||||||
* It is important that function name is updated with resolved function name.
|
* It is important that function name is updated with resolved function name.
|
||||||
* Main motivation for this is query tree optimizations.
|
* Main motivation for this is query tree optimizations.
|
||||||
|
@ -108,7 +108,7 @@ public:
|
|||||||
auto & arguments = match_function->getArguments().getNodes();
|
auto & arguments = match_function->getArguments().getNodes();
|
||||||
auto & patterns = identifier_to_patterns.at(arguments[0]);
|
auto & patterns = identifier_to_patterns.at(arguments[0]);
|
||||||
arguments.push_back(std::make_shared<ConstantNode>(Field{std::move(patterns)}));
|
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.
|
/// OR must have at least two arguments.
|
||||||
|
Loading…
Reference in New Issue
Block a user