mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Merge
This commit is contained in:
parent
59ae69c5e9
commit
9800d0d95f
@ -86,8 +86,8 @@ private:
|
||||
|
||||
/// remove condition by swapping it with the last one and calling ::pop_back()
|
||||
const auto remove_condition_at_index = [&conditions] (const std::size_t idx) {
|
||||
if (idx < conditions.size())
|
||||
conditions[idx] = std::move(conditions.back());
|
||||
if (idx < conditions.size() - 1)
|
||||
std::swap(conditions[idx], conditions.back());
|
||||
conditions.pop_back();
|
||||
};
|
||||
|
||||
|
@ -459,7 +459,7 @@ void ExpressionAnalyzer::optimizeGroupBy()
|
||||
const auto remove_expr_at_index = [&group_exprs] (const size_t idx)
|
||||
{
|
||||
if (idx < group_exprs.size() - 1)
|
||||
group_exprs[idx] = std::move(group_exprs.back());
|
||||
std::swap(group_exprs[idx], group_exprs.back());
|
||||
|
||||
group_exprs.pop_back();
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user