[ 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<X> typeInfo = TypeExtractor.getForObject(data[0]); > {code} > method {{getForObject}} wraps it into > {code} > GenericTypeInfo<org.apache.flink.types.Row> > {code} > the method should return {{RowTypeInfo}} -- This message was sent by Atlassian JIRA (v6.3.4#6332)