Apache Pig SIZE Function
The Apache Pig SIZE function is used to find the number of elements based on any Pig data type. It includes NULL values in size computation. Here, the size is not algebraic.
Example of SIZE Function
In this example, we compute the number of characters present in the first field of each tuple.
Steps to execute SIZE Function
Here, we got the desired output.