[ https://issues.apache.org/jira/browse/PIG-4842?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xuefu Zhang resolved PIG-4842. ------------------------------ Resolution: Fixed Committed to Spark branch. Thanks, Xianda! > Collected group doesn't work in some cases > ------------------------------------------ > > Key: PIG-4842 > URL: https://issues.apache.org/jira/browse/PIG-4842 > Project: Pig > Issue Type: Sub-task > Components: spark > Reporter: Xianda Ke > Assignee: Xianda Ke > Fix For: spark-branch > > Attachments: PIG-4842-2.patch, PIG-4842.patch > > > Scenario: > 1. input data: > cat collectedgroup1 > {code} > 1 > 1 > 2 > {code} > 2. pig script: > {code} > A = LOAD 'collectedgroup1' USING myudfs.DummyCollectableLoader() AS (id); > B = GROUP A by $0 USING 'collected'; > C = GROUP B by $0 USING 'collected'; > DUMP C; > {code} > The expected output: > {code} > (1,{(1,{(1),(1)})}) > (2,{(2,{(2)})}) > {code} > The actual output: > {code} > (1,{(1,{(1),(1)})}) > (1,) > (2,{(2,{(2)})}) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)