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 BC32218B48 for ; Wed, 10 Feb 2016 17:51:18 +0000 (UTC) Received: (qmail 19251 invoked by uid 500); 10 Feb 2016 17:51:18 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 19201 invoked by uid 500); 10 Feb 2016 17:51:18 -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 19092 invoked by uid 500); 10 Feb 2016 17:51:18 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 19050 invoked by uid 99); 10 Feb 2016 17:51:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Feb 2016 17:51:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 13B2C2C1F57 for ; Wed, 10 Feb 2016 17:51:18 +0000 (UTC) Date: Wed, 10 Feb 2016 17:51:18 +0000 (UTC) From: "Daniel Dai (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PIG-4790) Join after union fail due to UnionOptimizer 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-4790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15141299#comment-15141299 ] Daniel Dai commented on PIG-4790: --------------------------------- +1 for PIG-4790-3.patch. > Join after union fail due to UnionOptimizer > ------------------------------------------- > > Key: PIG-4790 > URL: https://issues.apache.org/jira/browse/PIG-4790 > Project: Pig > Issue Type: Bug > Components: tez > Reporter: Daniel Dai > Assignee: Daniel Dai > Fix For: 0.16.0 > > Attachments: PIG-4790-1.patch, PIG-4790-2.patch, PIG-4790-3.patch > > > The following script fail to run: > {code} > rmf ooo > a = load 'student.txt' as (name:chararray, age:int, gpa:double); > b = filter a by age > 65; > c = filter a by age <=10; > d = union b, c; > e = join a by name left, d by name; > store e into 'ooo'; > {code} > Exception stack: > {code} > Caused by: java.lang.IllegalArgumentException: Edge [scope-43 : org.apache.pig.backend.hadoop.executionengine.tez.runtime.PigProcessor] -> [scope-55 : org.apache.pig.backend.hadoop.executionengine.tez.runtime.PigProcessor] ({ SCATTER_GATHER : org.apache.tez.runtime.library.input.OrderedGroupedKVInput >> PERSISTED >> org.apache.tez.runtime.library.output.OrderedPartitionedKVOutput >> NullEdgeManager }) already defined! > at org.apache.tez.dag.api.DAG.addEdge(DAG.java:272) > at org.apache.pig.backend.hadoop.executionengine.tez.TezDagBuilder.visitTezOp(TezDagBuilder.java:311) > at org.apache.pig.backend.hadoop.executionengine.tez.plan.TezOperator.visit(TezOperator.java:252) > at org.apache.pig.backend.hadoop.executionengine.tez.plan.TezOperator.visit(TezOperator.java:56) > at org.apache.pig.impl.plan.DependencyOrderWalker.walk(DependencyOrderWalker.java:87) > at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:46) > at org.apache.pig.backend.hadoop.executionengine.tez.TezJobCompiler.buildDAG(TezJobCompiler.java:65) > at org.apache.pig.backend.hadoop.executionengine.tez.TezJobCompiler.getJob(TezJobCompiler.java:111) > ... 20 more > {code} > Disable pig.tez.opt.union the script runs fine. > Seems we shall detect this patten and disallow merge vertex group into a pair already has an edge. -- This message was sent by Atlassian JIRA (v6.3.4#6332)