pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Koji Noguchi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-3266) Pig takes forever to parse scripts with foreach + multi level binconds
Date Wed, 03 Apr 2013 19:19:18 GMT

    [ https://issues.apache.org/jira/browse/PIG-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13621230#comment-13621230
] 

Koji Noguchi commented on PIG-3266:
-----------------------------------

bq. Koji Noguchi, I think this was fixed. I don't see the issue on trunk.

Just realize that. Thanks!  Can you show me which jira fixed this?
I should have tested with trunk before creating this jira.  I think I even tried with pig-0.11
to confirm the problem.
                
> Pig takes forever to parse scripts with foreach + multi level binconds 
> -----------------------------------------------------------------------
>
>                 Key: PIG-3266
>                 URL: https://issues.apache.org/jira/browse/PIG-3266
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.10.0, 0.11
>            Reporter: Koji Noguchi
>
> Following pig script parsing takes 
> *  1 second  in pig-0.8
> * 90 seconds in pig-0.9
> * forever in pig-0.10 (it's taking literally hours)
> {noformat}
> A = load 'input.txt' as (mynum:float, mychar:chararray);
> B = foreach A generate mychar,
> (mynum < 0 ? 0 :
> (mynum < 1 ? 1 :
> (mynum < 2 ? 2 :
> (mynum < 3 ? 3 :
> (mynum < 4 ? 4 :
> (mynum < 5 ? 5 :
> (mynum < 6 ? 6 :
> (mynum < 7 ? 7 :
> (mynum < 8 ? 8 :
> (mynum < 9 ? 9 :
> (mynum < 10 ? 10 :
> (mynum < 11 ? 11 :
> (mynum < 12 ? 12 :
> (mynum < 13 ? 13 :
> (mynum < 14 ? 14 :
> (mynum < 15 ? 15 :
> (mynum < 16 ? 16 :
> (mynum < 17 ? 17 :
> (mynum < 18 ? 18 :
> (mynum < 19 ? 19 :
> (mynum < 20 ? 20 : 21)))))))))))))))))))));
> dump A;
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message