From commits-return-59900-archive-asf-public=cust-asf.ponee.io@beam.apache.org Tue Mar 6 05:56:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 591EF180608 for ; Tue, 6 Mar 2018 05:56:04 +0100 (CET) Received: (qmail 4102 invoked by uid 500); 6 Mar 2018 04:56:03 -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 4089 invoked by uid 99); 6 Mar 2018 04:56:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Mar 2018 04:56:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CBC3BC0558 for ; Tue, 6 Mar 2018 04:56:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id s1J3Zh0GQZ01 for ; Tue, 6 Mar 2018 04:56:02 +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 ECFBC5F5DC for ; Tue, 6 Mar 2018 04:56:01 +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 41FFCE01D8 for ; Tue, 6 Mar 2018 04:56:01 +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 7AAF521282 for ; Tue, 6 Mar 2018 04:56:00 +0000 (UTC) Date: Tue, 6 Mar 2018 04:56:00 +0000 (UTC) From: "Kenneth Knowles (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (BEAM-3737) Key-aware batching function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BEAM-3737?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Kenneth Knowles reassigned BEAM-3737: ------------------------------------- Assignee: (was: Kenneth Knowles) > Key-aware batching function > --------------------------- > > Key: BEAM-3737 > URL: https://issues.apache.org/jira/browse/BEAM-3737 > Project: Beam > Issue Type: New Feature > Components: beam-model > Reporter: Chuan Yu Foo > Priority: Major > > I have a CombineFn for which add_input has very large overhead. I would l= ike to=C2=A0batch the incoming elements=C2=A0into a large batch before each= call to add_input to reduce this overhead. In other words, I would like to= do something like:=C2=A0 > {{elements | GroupByKey() |=C2=A0BatchElements() | CombineValues(MyCombin= eFn())}} > Unfortunately, BatchElements is not key-aware, and can't be used after a = GroupByKey to batch elements per key. I'm working around this by doing the = batching within CombineValues, which makes the CombineFn rather messy. It w= ould be nice if there were a key-aware BatchElements transform which could = be used in this context. -- This message was sent by Atlassian JIRA (v7.6.3#76005)