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 D3BB7200B27 for ; Tue, 7 Jun 2016 10:54:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D2732160A35; Tue, 7 Jun 2016 08:54:22 +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 2D83E160A36 for ; Tue, 7 Jun 2016 10:54:22 +0200 (CEST) Received: (qmail 77267 invoked by uid 500); 7 Jun 2016 08:54:21 -0000 Mailing-List: contact issues-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 issues@flink.apache.org Received: (qmail 77244 invoked by uid 99); 7 Jun 2016 08:54:21 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2016 08:54:21 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 165AE2C1F54 for ; Tue, 7 Jun 2016 08:54:21 +0000 (UTC) Date: Tue, 7 Jun 2016 08:54:21 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-4016) FoldApplyWindowFunction is not properly initialized MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 07 Jun 2016 08:54:23 -0000 [ https://issues.apache.org/jira/browse/FLINK-4016?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15318163#comment-15318163 ] ASF GitHub Bot commented on FLINK-4016: --------------------------------------- Github user aljoscha commented on the issue: https://github.com/apache/flink/pull/2070 Hi, the clean way to go about this is to close this PR and open a new one for `FLINK-3977`. I wrote a new comment in the issue, outlining how the problem can be solved: https://issues.apache.org/jira/browse/FLINK-3977. > FoldApplyWindowFunction is not properly initialized > --------------------------------------------------- > > Key: FLINK-4016 > URL: https://issues.apache.org/jira/browse/FLINK-4016 > Project: Flink > Issue Type: Bug > Components: DataStream API > Affects Versions: 1.0.3 > Reporter: RWenden > Priority: Blocker > Labels: easyfix > Fix For: 1.1.0 > > Original Estimate: 1h > Remaining Estimate: 1h > > FoldApplyWindowFunction's outputtype is not set. > We're using constructions like (excerpt): > .keyBy(0) > .countWindow(10, 5) > .fold(...) > Running this stream gives an runtime exception in FoldApplyWindowFunction: > "No initial value was serialized for the fold window function. Probably the setOutputType method was not called." > This can be easily fixed in WindowedStream.java by (around line# 449): > FoldApplyWindowFunction foldApplyWindowFunction = new FoldApplyWindowFunction<>(initialValue, foldFunction, function); > foldApplyWindowFunction.setOutputType(resultType, input.getExecutionConfig()); > operator = new EvictingWindowOperator<>(windowAssigner, > windowAssigner.getWindowSerializer(getExecutionEnvironment().getConfig()), > keySel, > input.getKeyType().createSerializer(getExecutionEnvironment().getConfig()), > stateDesc, > new InternalIterableWindowFunction<>(foldApplyWindowFunction), > trigger, > evictor); -- This message was sent by Atlassian JIRA (v6.3.4#6332)