[ https://issues.apache.org/jira/browse/PIG-4727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Dai resolved PIG-4727. ----------------------------- Resolution: Fixed Assignee: Nathan Smith Hadoop Flags: Reviewed Fix Version/s: 0.16.0 You are right. LongAvg produces double. Patch committed. Thanks Nathan! > Incorrect types table for AVG in docs > ------------------------------------- > > Key: PIG-4727 > URL: https://issues.apache.org/jira/browse/PIG-4727 > Project: Pig > Issue Type: Bug > Components: documentation > Affects Versions: 0.15.0 > Reporter: Nathan Smith > Assignee: Nathan Smith > Priority: Trivial > Fix For: 0.16.0 > > Attachments: PIG-4727.patch > > > The docs for AVG state that AVG for int & long produces a long, but the > source for those classes actually produce a double. > * https://github.com/apache/pig/blob/trunk/src/org/apache/pig/builtin/AVG.java > * > https://github.com/apache/pig/blob/trunk/src/org/apache/pig/builtin/LongAvg.java > * > https://github.com/apache/pig/blob/trunk/src/org/apache/pig/builtin/IntAvg.java > -- This message was sent by Atlassian JIRA (v6.3.4#6332)