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 C49EF200C15 for ; Wed, 8 Feb 2017 08:06:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C361C160B4E; Wed, 8 Feb 2017 07:06:52 +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 11909160B6A for ; Wed, 8 Feb 2017 08:06:51 +0100 (CET) Received: (qmail 42318 invoked by uid 500); 8 Feb 2017 07:06:46 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 42243 invoked by uid 99); 8 Feb 2017 07:06:46 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Feb 2017 07:06:46 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9EE89C0764 for ; Wed, 8 Feb 2017 07:06:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id MWLmZFYRPJmK for ; Wed, 8 Feb 2017 07:06:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 50FA85F283 for ; Wed, 8 Feb 2017 07:06:44 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id E5962E0612 for ; Wed, 8 Feb 2017 07:06:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0ABFA2529D for ; Wed, 8 Feb 2017 07:06:42 +0000 (UTC) Date: Wed, 8 Feb 2017 07:06:42 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-1430) PartitionFn should access only the element and not the context MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 08 Feb 2017 07:06:53 -0000 [ https://issues.apache.org/jira/browse/BEAM-1430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15857537#comment-15857537 ] ASF GitHub Bot commented on BEAM-1430: -------------------------------------- GitHub user sb2nov opened a pull request: https://github.com/apache/beam/pull/1947 [BEAM-1430] PartitionFn should not access context and just the element PartitionFn currently has access to the complete process context. We should limit the access to just the element to make it more NewDoFn like. This also removes the last uses on ContextParam after #1942 R: @robertwb @aaltay PTAL Be sure to do all of the following to help us incorporate your contribution quickly and easily: - [x] Make sure the PR title is formatted like: `[BEAM-] Description of pull request` - [x] Make sure tests pass via `mvn clean verify`. (Even better, enable Travis-CI on your fork and ensure the whole test matrix passes). - [x] Replace `` in the title with the actual Jira issue number, if there is one. - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.txt). --- You can merge this pull request into a Git repository by running: $ git pull https://github.com/sb2nov/beam BEAM-1430-partition_fn_no_contexxt Alternatively you can review and apply these changes as the patch at: https://github.com/apache/beam/pull/1947.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #1947 ---- commit ca69524b54faede93df28d997e57da90c926f23c Author: Sourabh Bajaj Date: 2017-02-08T00:16:49Z PartitionFn should not access context ---- > PartitionFn should access only the element and not the context > -------------------------------------------------------------- > > Key: BEAM-1430 > URL: https://issues.apache.org/jira/browse/BEAM-1430 > Project: Beam > Issue Type: Improvement > Components: sdk-py > Affects Versions: Not applicable > Reporter: Sourabh Bajaj > Assignee: Sourabh Bajaj > Priority: Minor > > https://github.com/apache/beam/blob/master/sdks/python/apache_beam/transforms/core.py#L1182 should only access the element and not the full context. -- This message was sent by Atlassian JIRA (v6.3.15#6346)