SUM
Evaluates to the sum of all numeric arguments.
Strings are parsed into numbers if possible, unparseable strings or other values evaluate to zero.
SUB
Evaluates to the first argument subtracted by the second, or arg1 - arg2.
Strings are parsed into numbers if possible, unparseable strings or other values evaluate to zero.
MUL
Multiplies all numeric arguments and returns the product.
Strings are parsed into numbers if possible, unparseable strings or other values evaluate to zero.
DIV
Divides the first argument by the second, or arg1 / arg2.
Strings are parsed into numbers if possible, unparseable strings or other values evaluate to zero.
A division by zero evaluates to null.
MOD
Computes the remainder of arg1 / arg2.
Strings are parsed into floats if possible, unparseable strings or other values evaluate to zero.
Evaluates to null if arg2 is zero.
MIN
Evaluates to the smallest argument of the same type as the first non-empty argument.
“Smallest” means the smaller, if numeric, or lexicographically first, if a string.
MAX
Evaluates to the largest argument of the same type as the first non-empty argument.
“Largest” means the larger, if numeric, or lexicographically last, if string.
LOG10
Computes the base-10 logarithm of the argument.
Strings are parsed into numbers if possible.
Unparseable strings, and arguments less than or equal to 0, evaluate to null.
BUCKET
Computes discrete (categorical) bins, or buckets, to transform continuous fields into categorical ones.
This can be useful to group data into groups.
The syntax is BUCKET( $column, size, [min, [max]]).
The function returns size-sized buckets from min to max.
For example, BUCKET( $column, 10, 0, 30) will return groups named < 0, 0 - 10, 10 - 20, 20 - 30, and > 30.
If only the min is specified, then the function will run without an upper bound; if neither a min nor max is specified, then the function will run without either bound, starting from a bucket 0 - size.
In all versions, points on the boundary between two bins will fall into the lower bin.
The size, min, and max may not be columns.
If the column is not a float value, the function returns null.