You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Md Kamaruzzaman (JIRA)" <ji...@apache.org> on 2017/06/13 16:19:00 UTC
[jira] [Created] (FLINK-6909) Flink should support Lombok POJO
Md Kamaruzzaman created FLINK-6909:
--------------------------------------
Summary: Flink should support Lombok POJO
Key: FLINK-6909
URL: https://issues.apache.org/jira/browse/FLINK-6909
Project: Flink
Issue Type: Wish
Reporter: Md Kamaruzzaman
Priority: Minor
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
(v6.4.14#64029)