mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Fixed build [#CLICKHOUSE-2].
This commit is contained in:
parent
c4c8057a28
commit
4bf1f39190
@ -128,12 +128,9 @@ void InterpreterSelectQuery::init(const BlockInputStreamPtr & input, const Names
|
||||
|
||||
bool InterpreterSelectQuery::hasAggregation(const ASTSelectQuery & query_ptr)
|
||||
{
|
||||
for (const IAST * head = query_ptr.get(); head; head = head->next_union_all.get())
|
||||
{
|
||||
const ASTSelectQuery & head_query = static_cast<const ASTSelectQuery &>(*head);
|
||||
if (head_query.group_expression_list || head_query.having_expression)
|
||||
for (const ASTSelectQuery * elem = &query_ptr; elem; elem = static_cast<const ASTSelectQuery *>(elem->next_union_all.get()))
|
||||
if (elem->group_expression_list || elem->having_expression)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user