[
https://issues.apache.org/jira/browse/PIG-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Dai resolved PIG-2714.
-----------------------------
Resolution: Fixed
Fix Version/s: 0.11
Assignee: Daniel Dai
Hadoop Flags: Reviewed
> 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
> Assignee: Daniel Dai
> Priority: Minor
> Fix For: 0.11
>
> Attachments: PIG-2714-1.patch
>
>
> 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