Skip AggregateFunctionWindowFunnelData::merge() if other.events_list is empty.

This commit is contained in:
philip.han 2020-03-21 14:47:06 +09:00
parent 7549c575b1
commit bf1aa44d19

View File

@ -56,6 +56,9 @@ struct AggregateFunctionWindowFunnelData
void merge(const AggregateFunctionWindowFunnelData & other)
{
if (other.events_list.empty())
return;
const auto size = events_list.size();
events_list.insert(std::begin(other.events_list), std::end(other.events_list));