Return-Path: Delivered-To: apmail-incubator-pig-dev-archive@locus.apache.org Received: (qmail 33703 invoked from network); 3 Jul 2008 14:13:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2008 14:13:06 -0000 Received: (qmail 56027 invoked by uid 500); 3 Jul 2008 14:13:07 -0000 Delivered-To: apmail-incubator-pig-dev-archive@incubator.apache.org Received: (qmail 55999 invoked by uid 500); 3 Jul 2008 14:13:07 -0000 Mailing-List: contact pig-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pig-dev@incubator.apache.org Delivered-To: mailing list pig-dev@incubator.apache.org Received: (qmail 55988 invoked by uid 99); 3 Jul 2008 14:13:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 07:13:07 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 14:12:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B1C02234C14D for ; Thu, 3 Jul 2008 07:12:45 -0700 (PDT) Message-ID: <680689874.1215094365713.JavaMail.jira@brutus> Date: Thu, 3 Jul 2008 07:12:45 -0700 (PDT) From: "Pi Song (JIRA)" To: pig-dev@incubator.apache.org Subject: [jira] Created: (PIG-290) LOCross output schema is not right MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org LOCross output schema is not right ---------------------------------- Key: PIG-290 URL: https://issues.apache.org/jira/browse/PIG-290 Project: Pig Issue Type: Bug Components: impl Affects Versions: types_branch Reporter: Pi Song >From the schema generation code:- {noformat} List inputs = mPlan.getPredecessors(this); for (LogicalOperator op : inputs) { // Create schema here } {noformat} The output schema is generated based on inputs determined in the logical plan. However, mPlan.getPredecessors() doesn't always preserve the right order (A x B and B x A result in different schemas). I suggest maintaining mInputs variable in LOCross (as it used to be) to resolve this issue. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.