Hugo Videira
11/12/2024, 6:11 PMcom.twitter.chill.protobuf.ProtobufSerializer , I'm still getting the following log:
INFO org.apache.flink.api.java.typeutils.TypeExtractor [] - class com.org.example.MyOuterClass$MyClass does not contain a setter for field oneOfXXX_
INFO org.apache.flink.api.java.typeutils.TypeExtractor [] - Class class com.org.example.MyOuterClass$MyClass cannot be used as a POJO type because not all fields are valid POJO fields, and must be processed as GenericType. Please read the Flink documentation on "Data Types & Serialization" for details of the effect on performance and schema evolution.
Any ideas how can I get rid of these logs?
Thanks in advance 🙇Lee Wallen
11/12/2024, 6:15 PMYou can test whether your class adheres to the POJO requirements viafrom theorg.apache.flink.types.PojoTestUtils#assertSerializedAsPojo(). If you additionally want to ensure that no field of the POJO will be serialized with Kryo, useflink-test-utilsinstead.assertSerializedAsPojoWithoutKryo()
Hugo Videira
11/12/2024, 6:17 PMHugo Videira
11/12/2024, 6:17 PMLee Wallen
11/12/2024, 6:27 PMBut since the classes are generated I cannot change it to be a POJODo you use the generated classes to create events/messages that are processed by operators prior to being sent to the sink? If so, then maybe you can create a POJO for internal use in the app, and then map a message/event to the protobuf version when it is sent to the sink.
Hugo Videira
11/13/2024, 9:59 AM