You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Xianda Ke (JIRA)" <ji...@apache.org> on 2016/03/18 08:08:33 UTC

[jira] [Created] (PIG-4842) Collected group doesn't work in some cases

Xianda Ke created PIG-4842:
------------------------------

             Summary: 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
            Reporter: Xianda Ke


Scenario:
1. input data:
cat collectedgroup1
1
1
2

2. pig script:
A = LOAD 'collectedgroup1' USING myudfs.DummyCollectableLoader() AS (id);
B = GROUP A by $0 USING 'collected';
C = GROUP B by $0 USING 'collected';
DUMP C;

The expected output:
(1,{(1,{(1),(1)})})
(2,{(2,{(2)})})

The actual output:
(1,{(1,{(1),(1)})})
(1,)
(2,{(2,{(2)})})






--
This message was sent by Atlassian JIRA
(v6.3.4#6332)