提交 4469790a 编写于 作者: A Alexey Milovidov

dbms: fixed working of AggregateFunctionIf with min, max, any, anyLast [#CONV-8713].

上级 5fa9b576
......@@ -71,7 +71,10 @@ public:
void insertResultInto(ConstAggregateDataPtr place, IColumn & to) const
{
to.insert(data(place).value);
if (unlikely(data(place).value.isNull()))
to.insertDefault();
else
to.insert(data(place).value);
}
};
......
......@@ -58,7 +58,10 @@ public:
void insertResultInto(ConstAggregateDataPtr place, IColumn & to) const
{
to.insert(data(place).value);
if (unlikely(data(place).value.isNull()))
to.insertDefault();
else
to.insert(data(place).value);
}
};
......
......@@ -101,7 +101,10 @@ public:
void insertResultInto(ConstAggregateDataPtr place, IColumn & to) const
{
to.insert(data(place).value);
if (unlikely(data(place).value.isNull()))
to.insertDefault();
else
to.insert(data(place).value);
}
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册