提交 0ec3f379 编写于 作者: A Alexey Milovidov

Fixed error in "arrayReduce" aggregate function

上级 56ec171f
......@@ -168,7 +168,8 @@ void FunctionArrayReduce::executeImpl(Block & block, const ColumnNumbers & argum
}
catch (...)
{
agg_func.destroy(places[i]);
for (size_t j = 0; j < i; ++j)
agg_func.destroy(places[j]);
throw;
}
}
......
SELECT arrayReduce('aggThrow(0.0001)', range(number % 10)) FROM system.numbers; -- { serverError 503 }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册