Apache Pig AVG FunctionThe Apache Pig AVG function is used to find the average of given numeric values in a single-column bag. It requires a preceding GROUP ALL statement for global averages and a GROUP BY statement for group averages. However, it ignores the NULL values. Example of AVG FunctionIn this example, we will compute the average of given numeric values. Steps to execute AVG Function
Here, we got the desired output.
Next TopicCONCAT Function
|