```
SET compile_expressions = 1
SELECT GREATEST(2,0)
```

function_name = String(function_is_plus ? "add" : "subtract") + interval_data_type->getKind().toString() + 's';
        }
        else
        {
            if (isDate(type_time))
                function_name = function_is_plus ? "addDays" : "subtractDays";
            else
                function_name = function_is_plus ? "addSeconds" : "subtractSeconds";
        }
        return FunctionFactory::instance().get(function_name, context);
    }
    bool isAggregateMultiply(const DataTypePtr & type0, const DataTypePtr & type1) const
    {
        if constexpr (!std::is_same_v<Op<UInt8, UInt8>, MultiplyImpl<UInt8, UInt8>>)
            return false;
        WhichDataType which0(type0);
        WhichDataType which1(type1);
        return (which0.isAggregateFunction() && which1.isNativeUInt())
            || (which0.isNativeUInt() && which1.isAggregateFunction());
    }
    bool isAggregateAddition(const DataTypePtr & type0, const DataTypePtr & type1) const
    {
        if constexpr (!std::is_same_v<Op<UInt8, UInt8>, PlusImpl<UInt8, UInt8>>)
            return false;
        WhichDataType which0(type0);
        WhichDataType which1(type1);
        return which0.isAggregateFunction() && which1.isAggregateFunction();
    }
    
    void executeAggregateMultiply(Block & block, const ColumnNumbers & arguments, size_t result, size_t input_rows_count) const