diff --git a/src/Analyzer/QueryTreeBuilder.cpp b/src/Analyzer/QueryTreeBuilder.cpp index 3f4ef587cbc..975c30f4dd7 100644 --- a/src/Analyzer/QueryTreeBuilder.cpp +++ b/src/Analyzer/QueryTreeBuilder.cpp @@ -651,7 +651,7 @@ QueryTreeNodePtr QueryTreeBuilder::buildExpression(const ASTPtr & expression, co const auto & group_concat_aliases = GroupConcatImpl::getNameAndAliases(); if (!function->name.empty() && std::any_of( group_concat_aliases.begin(), group_concat_aliases.end(), - [&](const std::string &s) { return s == function->name; }) + [&](const std::string &s) { return s == Poco::toLower(function->name); }) && function->arguments && function->arguments->children.size() == 2) { result = setFirstArgumentAsParameter(function, context);