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 91036E2F1 for ; Mon, 11 Feb 2013 22:11:07 +0000 (UTC) Received: (qmail 98464 invoked by uid 500); 11 Feb 2013 22:11:07 -0000 Delivered-To: apmail-pig-dev-archive@pig.apache.org Received: (qmail 98387 invoked by uid 500); 11 Feb 2013 22:11:07 -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 98372 invoked by uid 99); 11 Feb 2013 22:11:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 22:11:07 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of prash1784@gmail.com designates 209.85.217.179 as permitted sender) Received: from [209.85.217.179] (HELO mail-lb0-f179.google.com) (209.85.217.179) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 22:10:37 +0000 Received: by mail-lb0-f179.google.com with SMTP id j14so5014487lbo.10 for ; Mon, 11 Feb 2013 14:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=LyI7MnlXnRNq2qTegpvN3xyxe+vvfmHr0hMLyswCwR8=; b=TsmSS+9rDuDHuJAQFQ8pfFW/9WC5LvI9pdUtBweGE69X5sE993/LnjJojE4qY1b761 HOgpuu2DVYwMjzbs8s8ddWfJfdooXHtTfaeZu4AIxpgWnCtHaYjL/oFPky0bpvfccInV JWPT5BRj3/FFaKUM27hAw+uP+vzLd0diX0UPAkL3ZpunTekFsNN25er0nsNhc/c2WOoX vBIYtKXxIqmJKOfep2uPbpe1NZj8iGUCzexKDEmbVysX/Y1lavpPOvjNAQXzV0f2C8lt YKu4SldGzy7jN6QGOS2oZxtJyJUVmvLadeWfFTpfqfknm/u5oM1qMF8/whZyFfvWnw8x lONg== MIME-Version: 1.0 X-Received: by 10.112.82.136 with SMTP id i8mr6270383lby.74.1360620614447; Mon, 11 Feb 2013 14:10:14 -0800 (PST) Received: by 10.114.28.229 with HTTP; Mon, 11 Feb 2013 14:10:14 -0800 (PST) Date: Mon, 11 Feb 2013 14:10:14 -0800 Message-ID: Subject: Injecting plans From: Prashant Kommireddi To: dev@pig.apache.org Content-Type: multipart/alternative; boundary=f46d04016c3565f33d04d57a2c4e X-Virus-Checked: Checked by ClamAV on apache.org --f46d04016c3565f33d04d57a2c4e Content-Type: text/plain; charset=ISO-8859-1 Hey, I wanted to run an idea by you guys. I have a use-case where I try injecting load/store paths into the script. So if a user says A = load 'input'; I would like to add a base path to it and make it A = load 'base_path/foo/bar/input'. I would like to achieve this programatically, and 1 way I can of doing it is by allowing setter on LOLoad/LOStore that can modify the FileSpec. Is there a cleaner or better way to approach this? In the future I would probably be meddling with more than just Load/Store (for eg, disabling rmf or mkdir commands etc) but this is something I am looking at currently. Thanks, Prashant --f46d04016c3565f33d04d57a2c4e--