abs(val: numeric or duration) -> val

Returns the absolute value of 'val'.

Domain

This is a scalar function (calculates a single output value for a single input row).

Categories

Examples

Create a column 'all_positive' with the absolute values of column 'mixed'