Apache Pig MIN FunctionThe 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. SyntaxHere, exp - It is an expression with data types like chararray, int, float, long, etc. Example of MIN FunctionIn this example, we will find out the minimum of the given values. Steps to execute MIN Function
Here, we got the desired output.
Next TopicSIZE Function
|