Return-Path: Delivered-To: apmail-pig-dev-archive@www.apache.org Received: (qmail 11863 invoked from network); 9 Nov 2010 01:50:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Nov 2010 01:50:06 -0000 Received: (qmail 52063 invoked by uid 500); 9 Nov 2010 01:50:37 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 52033 invoked by uid 500); 9 Nov 2010 01:50:37 -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 52025 invoked by uid 500); 9 Nov 2010 01:50:37 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 52021 invoked by uid 99); 9 Nov 2010 01:50:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 01:50:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Nov 2010 01:50:34 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oA91oDUF001679 for ; Tue, 9 Nov 2010 01:50:13 GMT Message-ID: <33498902.91811289267413154.JavaMail.jira@thor> Date: Mon, 8 Nov 2010 20:50:13 -0500 (EST) From: "Viraj Bhat (JIRA)" To: pig-dev@hadoop.apache.org Subject: [jira] Reopened: (PIG-859) Optimizer throw error on self-joins In-Reply-To: <13067164.1245688807338.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/PIG-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Viraj Bhat reopened PIG-859: ---------------------------- Hi Olga, According to the use case of dfs.pig, we need to support this syntax. It would help the user to avoid having to write 2 load statements, which is non-intuitive. If you believe that this is not required we need to document this behavior that the self-join requires 2 load statements. Regards Viraj > Optimizer throw error on self-joins > ----------------------------------- > > Key: PIG-859 > URL: https://issues.apache.org/jira/browse/PIG-859 > Project: Pig > Issue Type: Bug > Components: impl > Affects Versions: 0.3.0 > Reporter: Ashutosh Chauhan > Fix For: 0.9.0 > > > Doing self-join results in exception thrown by Optimizer. Consider the following query > {code} > grunt> A = load 'a'; > grunt> B = Join A by $0, A by $0; > grunt> explain B; > 2009-06-20 15:51:38,303 [main] ERROR org.apache.pig.tools.grunt.Grunt - > ERROR 1094: Attempt to insert between two nodes that were not connected. > Details at logfile: pig_1245538027026.log > {code} > Relevant stack-trace from log-file: > {code} > Caused by: org.apache.pig.impl.plan.optimizer.OptimizerException: ERROR > 2047: Internal error. Unable to introduce split operators. > at > org.apache.pig.impl.logicalLayer.optimizer.ImplicitSplitInserter.transform(ImplicitSplitInserter.java:163) > at > org.apache.pig.impl.logicalLayer.optimizer.LogicalOptimizer.optimize(LogicalOptimizer.java:163) > at org.apache.pig.PigServer.compileLp(PigServer.java:844) > at org.apache.pig.PigServer.compileLp(PigServer.java:781) > at org.apache.pig.PigServer.getStorePlan(PigServer.java:723) > at org.apache.pig.PigServer.explain(PigServer.java:566) > ... 8 more > Caused by: org.apache.pig.impl.plan.PlanException: ERROR 1094: Attempt > to insert between two nodes that were not connected. > at > org.apache.pig.impl.plan.OperatorPlan.doInsertBetween(OperatorPlan.java:500) > at > org.apache.pig.impl.plan.OperatorPlan.insertBetween(OperatorPlan.java:480) > at > org.apache.pig.impl.logicalLayer.optimizer.ImplicitSplitInserter.transform(ImplicitSplitInserter.java:139) > ... 13 more > {code} > A possible workaround is: > {code} > grunt> A = load 'a'; > grunt> B = load 'a'; > grunt> C = join A by $0, B by $0; > grunt> explain C; > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.