Apache Pig MIN Function
The Apache Pig MIN function is used to find out the minimum of the numeric values or chararrays in a single-column bag. It requires a preceding GROUP ALL statement for global minimums and a GROUP BY statement for group minimums. However, it ignores the NULL values.
exp - It is an expression with data types like chararray, int, float, long, etc.
Example of MIN Function
In this example, we will find out the minimum of the given values.
Steps to execute MIN Function
Here, we got the desired output.