From issues-return-67926-apmail-flink-issues-archive=flink.apache.org@flink.apache.org Wed Aug 24 11:38:21 2016 Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 29E4A19570 for ; Wed, 24 Aug 2016 11:38:21 +0000 (UTC) Received: (qmail 49704 invoked by uid 500); 24 Aug 2016 11:38:21 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 49638 invoked by uid 500); 24 Aug 2016 11:38: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 49543 invoked by uid 99); 24 Aug 2016 11:38:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Aug 2016 11:38:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AD6C02C0155 for ; Wed, 24 Aug 2016 11:38:20 +0000 (UTC) Date: Wed, 24 Aug 2016 11:38:20 +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 [ https://issues.apache.org/jira/browse/FLINK-3702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15434747#comment-15434747 ] ASF GitHub Bot commented on FLINK-3702: --------------------------------------- Github user ggevay commented on a diff in the pull request: https://github.com/apache/flink/pull/2094#discussion_r76040491 --- Diff: flink-core/src/main/java/org/apache/flink/api/common/typeinfo/BasicArrayTypeInfo.java --- @@ -121,6 +122,18 @@ public boolean isKeyType() { } @Override + @PublicEvolving + public FieldAccessor getFieldAccessor(int pos, ExecutionConfig config) { + return new FieldAccessor.ArrayFieldAccessor(pos, this); + } + + @Override + @PublicEvolving + public FieldAccessor getFieldAccessor(String field, ExecutionConfig config) { + throw new InvalidFieldReferenceException("Selecting a field from an array type is only supported by index."); --- End diff -- b9a6012bf349afa83a27ac8c9c7b7af660ee8655 > 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)