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 A3762200B59 for ; Mon, 8 Aug 2016 16:45:48 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A1FFB160A91; Mon, 8 Aug 2016 14:45:48 +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 EA2EA160A77 for ; Mon, 8 Aug 2016 16:45:47 +0200 (CEST) Received: (qmail 61014 invoked by uid 500); 8 Aug 2016 14:45:47 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 61003 invoked by uid 99); 8 Aug 2016 14:45:47 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 14:45:46 +0000 Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B43B81A003E for ; Mon, 8 Aug 2016 14:45:46 +0000 (UTC) Received: by mail-qk0-f174.google.com with SMTP id t7so47783750qkh.0 for ; Mon, 08 Aug 2016 07:45:46 -0700 (PDT) X-Gm-Message-State: AEkoouulWuUV6uqSVw8uD/MFOZy0/C3bc+2bv8BCmc5gCtSt8dcaDL4601Fi2On/62PXEJhlK9H/ZyojtENVwg== X-Received: by 10.55.165.65 with SMTP id o62mr30839242qke.282.1470667545797; Mon, 08 Aug 2016 07:45:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.56.10 with HTTP; Mon, 8 Aug 2016 07:45:25 -0700 (PDT) In-Reply-To: References: From: Robert Metzger Date: Mon, 8 Aug 2016 16:45:25 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [DISCUSS] API breaking change in DataStream Windows To: "dev@flink.apache.org" Content-Type: multipart/alternative; boundary=001a114faee4a6710205399078e9 archived-at: Mon, 08 Aug 2016 14:45:48 -0000 --001a114faee4a6710205399078e9 Content-Type: text/plain; charset=UTF-8 Thank you for bringing this discussion to the mailing list. I agree with Chesnay's comment on GitHub that we should consider the "casting option" as well. I don't think we should break the API if there is a (admittedly ugly) work-around for those who run into the problem. If we put the work-around into the JavaDocs and the DataStream API documentation, everybody who is seriously blocked by this should find it. For 2.0, we can break the API by changing the method signature. On Mon, Aug 8, 2016 at 4:11 PM, Stephan Ewen wrote: > Hi all! > > We have a problem in the *DataStream API* around Windows for *CoGroup* and > *Join*. > These operations currently do not allow to set a parallelism, which is a > pretty heavy problem. > > To fix it properly, we need to change the return types of the coGroup() and > join() operations, which *breaks the binary compatibility* - it* retains > source compatibility*, though. > > The pull request with the change is: > https://github.com/apache/flink/pull/2305 > > There are very clumsy ways to work around this (custom casts in the user > code or making the join() / coGroup() behave differently than the other > operators) which we did not really think of as viable, because they would > need to be changed again in the future once we pull the API straight > (breaking even source compatibility then). > > *I would suggest to actually break the API* at that point (binary, not > source) for *Flink 1.2* and add a big note in the release docs. An > uncomfortable step, but the alternatives are quite bad, too. > > Have a look at what has been suggested in the pull request discussion and > please let us know what you think about that so we can proceed. > > Greetings, > Stephan > --001a114faee4a6710205399078e9--