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 2018/05/22 12:53:00 UTC

[jira] [Resolved] (FLINK-6909) Fix error message in CsvReader for wrong type class

     [ https://issues.apache.org/jira/browse/FLINK-6909?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Timo Walther resolved FLINK-6909.
---------------------------------
       Resolution: Fixed
    Fix Version/s: 1.4.3
                   1.5.0

Fixed in 1.6.0: 1c5a929c7ad6e40939e1170cdaf19c6ffd64f583
Fixed in 1.5.0: 30c224abd0c4344006fd4462feb7fab6b8bc66d3
Fixed in 1.4.0: 73ca6cc0fac02b3048c798b1640484fb96985148

> Fix error message in CsvReader for wrong type class
> ---------------------------------------------------
>
>                 Key: FLINK-6909
>                 URL: https://issues.apache.org/jira/browse/FLINK-6909
>             Project: Flink
>          Issue Type: Wish
>          Components: Type Serialization System
>            Reporter: Md Kamaruzzaman
>            Assignee: Timo Walther
>            Priority: Minor
>             Fix For: 1.5.0, 1.4.3
>
>
> Project lombok helps greatly to reduce boilerplate Java Code. 
> It seems that Flink does not accept a lombok POJO as a valid pojo. 
> e.g. Here is a POJO defined with lombok:
> @Getter
> @Setter
> @NoArgsConstructor
> public class SimplePojo
> Using this Pojo class to read from CSV file throws this exception:
> Exception in thread "main" java.lang.ClassCastException: org.apache.flink.api.java.typeutils.GenericTypeInfo cannot be cast to org.apache.flink.api.java.typeutils.PojoTypeInfo
> It would be great if flink supports lombok POJO.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)