[ 
https://issues.apache.org/jira/browse/FLINK-2410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14644059#comment-14644059
 ] 

Stephan Ewen commented on FLINK-2410:
-------------------------------------

[~fhueske] is right.

The initial design was that {{TypeInformation}} is a purely pre-flight (client 
side) construct. Shipped should be only serializers and comparators.

Seems at some point people subtly broke with that design, otherwise I would not 
know why it all of a sudden implements {{Serializable}}.

> PojoTypeInfo is not completely serializable
> -------------------------------------------
>
>                 Key: FLINK-2410
>                 URL: https://issues.apache.org/jira/browse/FLINK-2410
>             Project: Flink
>          Issue Type: Bug
>          Components: Java API
>            Reporter: Timo Walther
>            Assignee: Timo Walther
>
> Table API requires PojoTypeInfo to be serializable. The following code fails:
> {code}
> Table finishedEtlTable = maxMeasurements
> .join(stationTable).where("s_station_id = m_station_id")
> .select("year, month, day, value, country, name");
> DataSet<MaxTemperature> maxTemp = tableEnv.toDataSet(finishedEtlTable, 
> MaxTemperature.class);
> maxTemp
> .groupBy("year")
> .sortGroup("value", Order.DESCENDING)
> .first(1)
> .print();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to