15.6.29 maximum(value1, value2)

Returns the maximum of two arguments. The first argument is a value to compare with the second argument’s value and can be any one of the following data type: big integer, double, interval, integer, float. The second argument is a value to compare with the first argument’s value and can be any one of the following data type: big integer, double, interval, integer, float.

Examples

Function Result

maximum(1999220,1997220)

1999220

maximum(135.45, 135.50)

135.50

Note:

If the user provides two different data types as input arguments, then Stream Analytics does implicit conversion to convert one of the argument to the other argument’s type.