You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Timo Walther (JIRA)" <ji...@apache.org> on 2015/08/04 11:19:04 UTC

[jira] [Commented] (FLINK-2410) PojoTypeInfo is not completely serializable

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

Timo Walther commented on FLINK-2410:
-------------------------------------

The Table API passes the TypeInformation to functions (e.g. Mappers) in order to convert POJOs/Tuples into Rows. But I think there are other cases where a serializable TypeInfo is neccessary. [~aljoscha] introduced it with [FLINK-1369].

> 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)