[ https://issues.apache.org/jira/browse/PIG-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12733403#action_12733403 ]
Olga Natkovich commented on PIG-875: ------------------------------------ I don't think we want to define at runtime whether UDF needs to count nulls since it complicates and slows the code. I don't think there is a precedent of AVG counting NULLs and so I don't feel we need to support it. Otherwise, why not do the same for SUM, MIN, and MAX. If users want to do that, they can implement their own UDFs but I don't feel we need to support this by default. I can change the name of the function if it makes it more intuitive. It just seems a bit long. > Making COUNT and AVG semantics SQL compliant > -------------------------------------------- > > Key: PIG-875 > URL: https://issues.apache.org/jira/browse/PIG-875 > Project: Pig > Issue Type: Bug > Reporter: Olga Natkovich > Assignee: Olga Natkovich > Fix For: 0.4.0 > > > Currently both AVG and COUNT counts NULLs -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.