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 413FE200BC8 for ; Wed, 9 Nov 2016 00:14:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3FD39160B0C; Tue, 8 Nov 2016 23:14:03 +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 3115E160B0A for ; Wed, 9 Nov 2016 00:14:02 +0100 (CET) Received: (qmail 90640 invoked by uid 500); 8 Nov 2016 23:14:00 -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 90525 invoked by uid 99); 8 Nov 2016 23:14:00 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 23:14:00 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9CC982C2A67 for ; Tue, 8 Nov 2016 23:14:00 +0000 (UTC) Date: Tue, 8 Nov 2016 23:14:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-3702) DataStream API PojoFieldAccessor doesn't support nested POJOs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Nov 2016 23:14:03 -0000 [ https://issues.apache.org/jira/browse/FLINK-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15649144#comment-15649144 ] ASF GitHub Bot commented on FLINK-3702: --------------------------------------- Github user fhueske commented on a diff in the pull request: https://github.com/apache/flink/pull/2094#discussion_r87096436 --- Diff: flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/KeyedStream.java --- @@ -337,37 +337,43 @@ public KeyedStream(DataStream dataStream, KeySelector keySelector, Ty * per key. * * @param positionToSum - * The position in the data point to sum + * The field position in the data points to sum. This is applicable to + * Tuple types, basic and primitive array types, Scala case classes, --- End diff -- Not sure if we should document the behavior that we might remove soon. I'd rather have this as undocumented feature and open a JIRA issue to either add the documentation or remove the support for arrays and `0` for atomic types. What do you think @mbalassi? Same applies for all other Java / ScalaDocs. > DataStream API PojoFieldAccessor doesn't support nested POJOs > ------------------------------------------------------------- > > Key: FLINK-3702 > URL: https://issues.apache.org/jira/browse/FLINK-3702 > Project: Flink > Issue Type: Improvement > Components: DataStream API > Affects Versions: 1.0.0 > Reporter: Robert Metzger > Assignee: Gabor Gevay > > The {{PojoFieldAccessor}} (which is used by {{.sum(String)}} and similar methods) doesn't support nested POJOs right now. > As part of FLINK-3697 I'll add a check for a nested POJO and fail with an exception. -- This message was sent by Atlassian JIRA (v6.3.4#6332)