mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +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)
|
bool InterpreterSelectQuery::hasAggregation(const ASTSelectQuery & query_ptr)
|
||||||
{
|
{
|
||||||
for (const IAST * head = query_ptr.get(); head; head = head->next_union_all.get())
|
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)
|
||||||
const ASTSelectQuery & head_query = static_cast<const ASTSelectQuery &>(*head);
|
|
||||||
if (head_query.group_expression_list || head_query.having_expression)
|
|
||||||
return true;
|
return true;
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user