Apache Pig LIMIT OperatorThe Apache Pig LIMIT operator is used to limit the number of output tuples. However, if you specify the limit of output tuples equal to or more than the number of tuples exists, all the tuples in the relation are returned. Example of LIMIT OperatorIn this example, we return only two tuples from all the tuples in the relation. Steps to execute LIMIT Operator
Here, we got the desired output.
Next TopicORDER BY Operator
|