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 84653200C7E for ; Tue, 9 May 2017 05:24:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 82FD4160BBF; Tue, 9 May 2017 03:24:08 +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 C9BC5160BA5 for ; Tue, 9 May 2017 05:24:07 +0200 (CEST) Received: (qmail 79887 invoked by uid 500); 9 May 2017 03:24:06 -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 79878 invoked by uid 99); 9 May 2017 03:24:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2017 03:24:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 5146A1A0402 for ; Tue, 9 May 2017 03:24:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id UXR4GPrZhI5Q for ; Tue, 9 May 2017 03:24:05 +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 CDFE65FBBB for ; Tue, 9 May 2017 03:24:04 +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 5DA13E02C7 for ; Tue, 9 May 2017 03:24:04 +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 131D121B53 for ; Tue, 9 May 2017 03:24:04 +0000 (UTC) Date: Tue, 9 May 2017 03:24:04 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-659) WindowFn#isCompatible should provide a meaningful reason MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 09 May 2017 03:24:08 -0000 [ https://issues.apache.org/jira/browse/BEAM-659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001972#comment-16001972 ] ASF GitHub Bot commented on BEAM-659: ------------------------------------- GitHub user huafengw opened a pull request: https://github.com/apache/beam/pull/2985 [BEAM-659] WindowFn#isCompatible should provide a meaningful reason Be sure to do all of the following to help us incorporate your contribution quickly and easily: - [ ] Make sure the PR title is formatted like: `[BEAM-] Description of pull request` - [ ] Make sure tests pass via `mvn clean verify`. - [ ] 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.pdf). --- You can merge this pull request into a Git repository by running: $ git pull https://github.com/huafengw/beam BEAM-659 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/beam/pull/2985.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 #2985 ---- commit 12addb1bea6d620050b96fdf4e30602c7a710183 Author: huafengw Date: 2017-05-09T03:21:44Z [BEAM-659] WindowFn#isCompatible should provide a meaningful reason ---- > WindowFn#isCompatible should provide a meaningful reason > -------------------------------------------------------- > > Key: BEAM-659 > URL: https://issues.apache.org/jira/browse/BEAM-659 > Project: Beam > Issue Type: Bug > Components: sdk-java-core > Reporter: Kenneth Knowles > Assignee: Huafeng Wang > Priority: Minor > Labels: easy, easyfix, starter > > {{WindowFn#isCompatible(...)}} returns a true/false answer without any explanation of why; it suffers from a form of [boolean blindness|https://existentialtype.wordpress.com/2011/03/15/boolean-blindness/]. > We alleviated this for {{Coder#isDeterministic()}} by switching to {{Coder#verifyDeterministic()}} which can raise an exception describing why it is not deterministic (it could just as easily have been a return value). > We should do the same for {{WindowFn#isCompatible(...)}}. > See here: http://stackoverflow.com/questions/39617897/inputs-to-flatten-had-incompatible-window-windowfns-when-cogroupbykey-with-calen > (a decent {{toString}} would go a long way, for immediate and trivial improvement) -- This message was sent by Atlassian JIRA (v6.3.15#6346)