[ https://issues.apache.org/jira/browse/FLINK-5358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15760719#comment-15760719 ]
Anton Solovev edited comment on FLINK-5358 at 12/19/16 10:41 AM: ----------------------------------------------------------------- Any ExecutionEnvironment exctracts type from TypeExtractor by first elemnt in collection in such methods {{#fromCollection(Collection<X> data)}}, {{#fromElements(X... data)}} I think we need rework them either or just don't use them with {{Row}} to generate {{DataSet}}/{{DataStream}} [~fhueske], [~jark] what do you think? was (Author: tonycox): Any ExecutionEnvironment exctracts type from TypeExtractor first elemnt in collection in such methods {{#fromCollection(Collection<X> data)}}, {{#fromElements(X... data)}} I think we need rework them either or just don't use them with {{Row}} to generate {{DataSet}}/{{DataStream}} [~fhueske], [~jark] what do you think? > Support Row in TypeExtractor > ---------------------------- > > 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)