Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 31926200B8A for ; Fri, 9 Sep 2016 22:37:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 30397160AC2; Fri, 9 Sep 2016 20:37:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8204B160AA3 for ; Fri, 9 Sep 2016 22:37:21 +0200 (CEST) Received: (qmail 52635 invoked by uid 500); 9 Sep 2016 20:37:20 -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 52609 invoked by uid 500); 9 Sep 2016 20:37:20 -0000 Delivered-To: apmail-hadoop-pig-dev@hadoop.apache.org Received: (qmail 52605 invoked by uid 99); 9 Sep 2016 20:37:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Sep 2016 20:37:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7DD0B2C1B7B for ; Fri, 9 Sep 2016 20:37:20 +0000 (UTC) Date: Fri, 9 Sep 2016 20:37:20 +0000 (UTC) From: "Koji Noguchi (JIRA)" To: pig-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PIG-4897) Scope of param substitution for run/exec commands MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 09 Sep 2016 20:37:22 -0000 [ https://issues.apache.org/jira/browse/PIG-4897?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Koji Noguchi updated PIG-4897: ------------------------------ Attachment: pig-4897-v06.patch {quote} Makes sense. We can just go with the current patch which keeps things simple and clear. testScopeOfParamWithNestedRunCommand is in v04 patch but missing in v05 though. Can you also create a new jira for the macro case and update the comment for the testScopeOfParamWithMacro with that jira number. {quote} Thanks Rohini. Added back testScopeOfParamWithNestedRunCommand, created PIG-5028 for tracking the macro issue and updated the comment in testScopeOfParamWithMacro. > Scope of param substitution for run/exec commands > ------------------------------------------------- > > Key: PIG-4897 > URL: https://issues.apache.org/jira/browse/PIG-4897 > Project: Pig > Issue Type: Bug > Reporter: Koji Noguchi > Assignee: Koji Noguchi > Attachments: pig-4897-v01-notestyet.patch, pig-4897-v02.patch, pig-4897-v03.patch, pig-4897-v04.patch, pig-4897-v05.patch, pig-4897-v06.patch > > > After PIG-3359, pig param substitution became global in that parameter declared in the pig script called from {{run}} or {{exec}} would live after that script finishes. > This created an interesting situation. > {code:title=test1.pig} > exec -param output=/tmp/deleteme111 test1_1.pig > exec -param output=/tmp/deleteme222 test1_1.pig > {code} > {code:title=test1_1.pig} > %default myout '$output.out'; > A = load 'input.txt' as (a0:int); > store A into '$myout'; > {code} > Running {{test1.pig}} would try to run two jobs that both tries to write to /tmp/deleteme111 and fail. (Second param output=/tmp/deleteme222 is ignored.) -- This message was sent by Atlassian JIRA (v6.3.4#6332)