Return-Path: X-Original-To: apmail-pig-dev-archive@www.apache.org Delivered-To: apmail-pig-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C9B5F68A for ; Wed, 3 Apr 2013 18:57:16 +0000 (UTC) Received: (qmail 48618 invoked by uid 500); 3 Apr 2013 18:57:16 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 48548 invoked by uid 500); 3 Apr 2013 18:57:16 -0000 Mailing-List: contact dev-help@pig.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pig.apache.org Delivered-To: mailing list dev@pig.apache.org Received: (qmail 48346 invoked by uid 500); 3 Apr 2013 18:57:15 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 48216 invoked by uid 99); 3 Apr 2013 18:57:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 18:57:15 +0000 Date: Wed, 3 Apr 2013 18:57:15 +0000 (UTC) From: "Xuefu Zhang (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PIG-3266) Pig takes forever to parse scripts with foreach + multi level binconds MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PIG-3266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13621184#comment-13621184 ] Xuefu Zhang commented on PIG-3266: ---------------------------------- Sorry, I didn't mean it's not reproducible. I don't have a setup currently, and like to make sense of things from what is currently available. > 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