You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Daniel Dai (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/01 08:23:59 UTC

[jira] [Resolved] (PIG-2534) Pig generating infinite map outputs

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

Daniel Dai resolved PIG-2534.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 0.11
                   0.9.3
                   0.10
         Assignee: Daniel Dai
     Hadoop Flags: Reviewed

Unit test pass. test-patch:
     [exec] -1 overall.  
     [exec] 
     [exec]     +1 @author.  The patch does not contain any @author tags.
     [exec] 
     [exec]     +1 tests included.  The patch appears to include 3 new or modified tests.
     [exec] 
     [exec]     -1 javadoc.  The javadoc tool appears to have generated 1 warning messages.
     [exec] 
     [exec]     +1 javac.  The applied patch does not increase the total number of javac compiler warnings.
     [exec] 
     [exec]     +1 findbugs.  The patch does not introduce any new Findbugs warnings.
     [exec] 
     [exec]     -1 release audit.  The applied patch generated 533 release audit warnings (more than the trunk's current 530 warnings).

javadoc and release audit warning is unrelated.

Patch committed to 0.9/0.10/trunk
                
> Pig generating infinite map outputs
> -----------------------------------
>
>                 Key: PIG-2534
>                 URL: https://issues.apache.org/jira/browse/PIG-2534
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.9.1
>            Reporter: Vivek Padmanabhan
>            Assignee: Daniel Dai
>             Fix For: 0.10, 0.9.3, 0.11
>
>         Attachments: PIG-2534-1.patch, PIG-2534-2.patch
>
>
> I am getting a strange behavior by Pig in the below script for Pig 0.9.
> {code}
> event_serve = LOAD 'input1'   AS (s, m, l);
> cm_data_raw = LOAD 'input2'  AS (s, m, l);
> SPLIT cm_data_raw INTO
>     cm_serve_raw IF (( (chararray) (s#'key1') == '0') AND ( (chararray) (s#'key2') == '5')),
>     cm_click_raw IF (( (chararray) (s#'key1') == '1') AND ( (chararray) (s#'key2') == '5'));
> cm_serve = FOREACH cm_serve_raw GENERATE  s#'key3' AS f1,  s#'key4' AS f2, s#'key5' AS f3 ;
> cm_serve_lowercase = stream cm_serve through `echo val3`;
> cm_serve_final = FOREACH cm_serve_lowercase GENERATE  $0 AS cm_event_guid, $1 AS cm_receive_time, $2 AS cm_ctx_url;
> event_serve_filtered = FILTER event_serve BY  (chararray) (s#'key1') neq 'xxx' AND (chararray) (s#'key2') neq 'yyy' ;
> event_serve_project = FOREACH event_serve_filtered GENERATE  s#'key3' AS event_guid, s#'key4' AS receive_time;
> event_serve_join = join cm_serve_final by (cm_event_guid),
>     event_serve_project by (event_guid);
> store event_serve_join into 'somewhere';
> {code}
> Input (both input1 and input2 is same)
> ---
> [key1#0,key2#5,key3#val3,key4#val4,key5#val5]
> If i run this pig script with ColumnMapKeyPrune disabled, the job goes through fine and 1 output is created.
> But if I run this script by default, then it keeps on generating map output records infinitely. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira