mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Fix clang readability-container-size-empty warning in StorageDistributed::canForceGroupByNoMerge()
This commit is contained in:
parent
be1dec9239
commit
e44d5c5749
@ -430,7 +430,7 @@ bool StorageDistributed::canForceGroupByNoMerge(const Context &context, QueryPro
|
||||
// injective functions are optimized out in optimizeGroupBy()
|
||||
// hence all we need to check is that column in GROUP BY matches sharding expression
|
||||
auto & group_exprs = group_by->children;
|
||||
if (!group_exprs.size())
|
||||
if (group_exprs.empty())
|
||||
throw Exception("No ASTExpressionList in GROUP BY", ErrorCodes::LOGICAL_ERROR);
|
||||
|
||||
auto id = group_exprs[0]->as<ASTIdentifier>();
|
||||
|
Loading…
Reference in New Issue
Block a user