Update QueryAnalysisPass.cpp

This commit is contained in:
Nikolai Kochetov 2024-04-11 19:39:44 +02:00 committed by GitHub
parent 3e16309e99
commit 61d4d9a46e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5632,7 +5632,7 @@ ProjectionNames QueryAnalyzer::resolveFunction(QueryTreeNodePtr & node, Identifi
argument_column.type = constant_node->getResultType();
argument_is_constant = true;
}
else if(const auto * get_scalar_function_node = function_argument->as<FunctionNode>();
else if (const auto * get_scalar_function_node = function_argument->as<FunctionNode>();
get_scalar_function_node && get_scalar_function_node->getFunctionName() == "__getScalar")
{
/// Allow constant folding through getScalar