Apache Pig SUM FunctionThe Apache Pig SUM function is used to find the sum of the numeric values in a single-column bag. It requires a preceding GROUP ALL statement for global sums and a GROUP BY statement for group sums. It ignores the null values. Example of SUM FunctionIn this example, we compute the sum of given numeric values. Steps to execute SUM Function
Here, we got the desired output.
Next TopicTOKENIZE Function
|