pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Dai (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (PIG-4170) Multiquery with different type of key gives wrong result
Date Tue, 16 Sep 2014 05:43:34 GMT

     [ https://issues.apache.org/jira/browse/PIG-4170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Dai resolved PIG-4170.
-----------------------------
      Resolution: Fixed
    Hadoop Flags: Reviewed

Patch committed to trunk. Thanks Cheolsoo for review!

> Multiquery with different type of key gives wrong result
> --------------------------------------------------------
>
>                 Key: PIG-4170
>                 URL: https://issues.apache.org/jira/browse/PIG-4170
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>    Affects Versions: 0.13.0
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.14.0
>
>         Attachments: PIG-4170-0.patch, PIG-4170-1.patch
>
>
> The following script produce wrong result:
> {code}
> A = load '1.txt' as (i:int, s:chararray);
> B = group A by i;
> C = group A by s;
> store B into 'ooo1';
> store C into 'ooo2';
> {code}
> 1.txt:
> {code}
> 1       h
> 1       a
> {code}
> Expected: 
> {code}
> ooo1:
> 1       {(1,a),(1,h)}
> ooo2:
> a       {(1,a)}
> h       {(1,h)}
> {code}
> Actual:
> {code}
> ooo1:
> 1       {((1),a),((1),h)}
> ooo2:
> a       {(1,(a))}
> h       {(1,(h))}
> {code}
> This happens after PIG-3591.



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

Mime
View raw message