Return-Path: X-Original-To: apmail-spark-dev-archive@minotaur.apache.org Delivered-To: apmail-spark-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D7D6C10C26 for ; Thu, 6 Mar 2014 22:38:19 +0000 (UTC) Received: (qmail 6496 invoked by uid 500); 6 Mar 2014 22:38:18 -0000 Delivered-To: apmail-spark-dev-archive@spark.apache.org Received: (qmail 6402 invoked by uid 500); 6 Mar 2014 22:38:18 -0000 Mailing-List: contact dev-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@spark.apache.org Delivered-To: mailing list dev@spark.apache.org Received: (qmail 6394 invoked by uid 99); 6 Mar 2014 22:38:18 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2014 22:38:18 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 25B4E93A007; Thu, 6 Mar 2014 22:38:18 +0000 (UTC) From: pwendell To: dev@spark.apache.org Reply-To: dev@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request: SPARK-1195: set map_input_file environment var... Content-Type: text/plain Message-Id: <20140306223818.25B4E93A007@tyr.zones.apache.org> Date: Thu, 6 Mar 2014 22:38:18 +0000 (UTC) Github user pwendell commented on the pull request: https://github.com/apache/spark/pull/94#issuecomment-36946598 hey @tgravescs good catch on this one. In terms of abstracting. The most abstract we could do would be to add a method to a `Partition` called `getPipeEnvVars` or something. That seems maybe a bit heavyweight since this is just, for now, a single case. An intermediate thing would be to add `getPipeEnvVars` only to `HadoopPartition` and move the logic about input split checking to HadoopPartition. That seems slightly nicer to me and it would leave the door open to bumping that method into the `Partition` class. What do you think about that? This is just an idea not really a strong preference. Small comment about the tests. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---