I'm using clickhouse 20.12.3.3 version. 
The execution of sumIf() function is failing on the distributed table
Query:
`SELECT sumIf(pos_sales,isNotNull (pos_sales)) , fin_seg_desc AS SBU　from stores_cost_position_dist　where ((week between 201945 AND 202043)) group by fin_seg_desc;
`

Fails with:
`Code: 42. DB::Exception: Received from localhost:9000. DB::Exception: Aggregate function sum requires single argument: while receiving packet from node-2:9000: While executing Remote. 
`

Data types:
`pos_sales: Nullable(Float64),
week: Int32,
fin_seg_desc: String
`
The same query is working on the local table.

size_t number_of_arguments = 0;
    std::array<char, MAX_ARGS> is_nullable;    
};
AggregateFunctionPtr AggregateFunctionIf::getOwnNullAdapter(
    const AggregateFunctionPtr & nested_function, const DataTypes & arguments,
    const Array & params, const AggregateFunctionProperties & properties) const
{
    bool return_type_is_nullable = !properties.returns_default_when_only_null && getReturnType()->canBeInsideNullable();
    size_t nullable_size = std::count_if(arguments.begin(), arguments.end(), [](const auto & element) { return element->isNullable(); });
    return_type_is_nullable &= nullable_size != 1 || !arguments.back()->isNullable();   
    bool serialize_flag = return_type_is_nullable || properties.returns_default_when_only_null;
    if (arguments.size() <= 2 && arguments.front()->isNullable())
    {
        if (return_type_is_nullable)
        {
            return std::make_shared<AggregateFunctionIfNullUnary<true, true>>(nested_func, arguments, params);