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 5B50917C75 for ; Tue, 17 Mar 2015 19:48:43 +0000 (UTC) Received: (qmail 68472 invoked by uid 500); 17 Mar 2015 19:48:42 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 68420 invoked by uid 500); 17 Mar 2015 19:48:42 -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 68405 invoked by uid 500); 17 Mar 2015 19:48:42 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 68402 invoked by uid 99); 17 Mar 2015 19:48:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Mar 2015 19:48:42 +0000 Date: Tue, 17 Mar 2015 19:48:42 +0000 (UTC) From: "William Watson (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PIG-4458) Support UDFs in a FOREACH Before a Merge Join 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-4458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14365899#comment-14365899 ] William Watson commented on PIG-4458: ------------------------------------- Okay posted a new patch with a (too?) verbose comment when the merge join fails on one side. > Support UDFs in a FOREACH Before a Merge Join > --------------------------------------------- > > Key: PIG-4458 > URL: https://issues.apache.org/jira/browse/PIG-4458 > Project: Pig > Issue Type: New Feature > Reporter: William Watson > Attachments: PIG-4458.03.patch, remove_merge_join_udf_restriction.patch, remove_merge_join_udf_restriction.patch > > > Right now, the MapSideMergeValidator outright rejects any foreach that has a UDF in it: > {code} > private boolean isAcceptableForEachOp(Operator lo) throws LogicalToPhysicalTranslatorException { > if (lo instanceof LOForEach) { > OperatorPlan innerPlan = ((LOForEach) lo).getInnerPlan(); > validateMapSideMerge(innerPlan.getSinks(), innerPlan); > return !containsUDFs((LOForEach) lo); > } else { > return false; > } > } > {code} > There is a TODO for this later on in that same class (inside containsUDFs): > {code} > // TODO (dvryaboy): in the future we could relax this rule by tracing what fields > // are being passed into the UDF, and only refusing if the UDF is working on the > // join key. Transforms of other fields should be ok. > {code} > We should do the TODO and relax this requirement or just remove it altogether -- This message was sent by Atlassian JIRA (v6.3.4#6332)