Bejoy KS created PIG-2714:
-----------------------------

             Summary: Pig documentation on TOP funcation has issues 
                 Key: PIG-2714
                 URL: https://issues.apache.org/jira/browse/PIG-2714
             Project: Pig
          Issue Type: Bug
          Components: documentation
    Affects Versions: 0.9.2
            Reporter: Bejoy KS
            Priority: Minor


The following documentation gives a picture that the columns are indexed from 1 
but is actually indexed from 0.

http://pig.apache.org/docs/r0.8.1/piglatin_ref2.html#TOP

Specifically on the sample code snippet
result = TOP(10, 2, C); // and retain top 10 occurrences of 'second' in first

'second' is the second column, in that case we need to have the TOP function as 
TOP(10, 1, C) instead of TOP(10, 2, C)


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to