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 ECE41200BE1 for ; Mon, 19 Dec 2016 13:49:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EB86E160B30; Mon, 19 Dec 2016 12:49:59 +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 66EA0160B18 for ; Mon, 19 Dec 2016 13:49:59 +0100 (CET) Received: (qmail 31165 invoked by uid 500); 19 Dec 2016 12:49:58 -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 31152 invoked by uid 99); 19 Dec 2016 12:49:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Dec 2016 12:49:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 70C772C0057 for ; Mon, 19 Dec 2016 12:49:58 +0000 (UTC) Date: Mon, 19 Dec 2016 12:49:58 +0000 (UTC) From: "Fabian Hueske (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-5358) Support RowTypeInfo extraction in TypeExtractor by Row instance MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 19 Dec 2016 12:50:00 -0000 [ https://issues.apache.org/jira/browse/FLINK-5358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15761069#comment-15761069 ] Fabian Hueske commented on FLINK-5358: -------------------------------------- Very good point [~jark], in that case the type extraction would not work. We could only default to {{GenericType}} which gives different behavior that {{RowType}} because it is not a {{CompositeType}} and log a warning to explicitly define the {{RowTypeInfo}}. > Support RowTypeInfo extraction in TypeExtractor by Row instance > --------------------------------------------------------------- > > Key: FLINK-5358 > URL: https://issues.apache.org/jira/browse/FLINK-5358 > Project: Flink > Issue Type: Improvement > Reporter: Anton Solovev > Assignee: Anton Solovev > > {code} > Row[] data = new Row[]{}; > TypeInformation typeInfo = TypeExtractor.getForObject(data[0]); > {code} > method {{getForObject}} wraps it into > {code} > GenericTypeInfo > {code} > the method should return {{RowTypeInfo}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)