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 E6117200B7A for ; Mon, 22 Aug 2016 03:34:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E4B1F160AC0; Mon, 22 Aug 2016 01:34:25 +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 3807B160AAA for ; Mon, 22 Aug 2016 03:34:25 +0200 (CEST) Received: (qmail 85826 invoked by uid 500); 22 Aug 2016 01:34:24 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 85813 invoked by uid 99); 22 Aug 2016 01:34:24 -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; Mon, 22 Aug 2016 01:34:24 +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 87095C0115 for ; Mon, 22 Aug 2016 01:34:23 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id kUXztFKUn8_p for ; Mon, 22 Aug 2016 01:34:22 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id B28735F479 for ; Mon, 22 Aug 2016 01:34:21 +0000 (UTC) Received: (qmail 85791 invoked by uid 99); 22 Aug 2016 01:34:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Aug 2016 01:34:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 90DAD2C0031 for ; Mon, 22 Aug 2016 01:34:20 +0000 (UTC) Date: Mon, 22 Aug 2016 01:34:20 +0000 (UTC) From: "Daniel Halperin (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BEAM-145) OutputTimeFn#assignOutputTime overrides WindowFn#getOutputTime in unfortunate ways MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 22 Aug 2016 01:34:26 -0000 [ https://issues.apache.org/jira/browse/BEAM-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Halperin updated BEAM-145: --------------------------------- Fix Version/s: (was: 0.1.0-incubating) > OutputTimeFn#assignOutputTime overrides WindowFn#getOutputTime in unfortunate ways > ---------------------------------------------------------------------------------- > > Key: BEAM-145 > URL: https://issues.apache.org/jira/browse/BEAM-145 > Project: Beam > Issue Type: Bug > Components: runner-core > Reporter: Kenneth Knowles > Assignee: Kenneth Knowles > Priority: Minor > Labels: windowing > > Today the {{OutputTimeFn}} includes {{#assignOutputTime}}, {{#combine}}, and {{#merge}}. Together these express the grouping of timestamps, analogous to the grouping of values in a GBK / Combine, in a canonical way. > The default {{OutputTimeFn}} is provided by the {{WindowFn}}. In particular, {{SlidingWindows}} provides an {{OutputTimeFn}} that shifts input timestamps later to avoid watermark stuckness and then takes the minimum to compute the output timestamp. > The SDK additionally provides instance for "min", "max" and "end of window" output timestamps. > Unfortunately, if one overrides the {{OutputTimeFn}} to one of these, the shifting done by {{SlidingWindows}} is lost. > This is actually only a minor problem for now, since "min" is the default, "end of window" is unaffected, and "max" has only esoteric uses.The fix is easy: > This is interrelated with another suggested change: Since there are only three common {{OutputTimeFn}} instances, and it is a high bandwidth API, it does not seem worthwhile to leave it in userland. So it is proposed to reduce it to an enum, which would leave only the {{WindowFn}} as a userland place for timestamp adjustments. (requiring special casing for end-of-window, since it cannot be implemented without owning {{#assignOutputTime}}) -- This message was sent by Atlassian JIRA (v6.3.4#6332)