mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Analyzer count function handling with unqualified matcher fix
This commit is contained in:
parent
8eb93b216b
commit
9b7710ba40
@ -4073,7 +4073,7 @@ ProjectionNames QueryAnalyzer::resolveFunction(QueryTreeNodePtr & node, Identifi
|
||||
is_special_function_exists = function_name == "exists";
|
||||
|
||||
/// Handle SELECT count(*) FROM test_table
|
||||
if (function_name == "count" && function_node_ptr->getArguments().getNodes().size() == 1)
|
||||
if (Poco::toLower(function_name) == "count" && function_node_ptr->getArguments().getNodes().size() == 1)
|
||||
{
|
||||
auto * matcher_node = function_node_ptr->getArguments().getNodes().front()->as<MatcherNode>();
|
||||
if (matcher_node && matcher_node->isUnqualified())
|
||||
|
Loading…
Reference in New Issue
Block a user