Apache Pig ABS Function
The Apache Pig ABS function is used to return the absolute value of an expression. If the result is negative, the negation of the result is returned.
Example of ABS Function
In this example, we return the absolute value.
Steps to execute ABS Function
Here, we got the desired output.