I am a newbie to Flink/Avro. I am trying Flink 1.14.4 Table API to read the Avro format from Kafka (not the confluent one). I am not able to read any of the message. I am getting the following exception,
Caused by: java.lang.UnsupportedOperationException: Cannot read strings longer than 2147483639 bytes
at org.apache.avro.io.BinaryDecoder.readString(BinaryDecoder.java:282)
at org.apache.avro.io.ResolvingDecoder.readString(ResolvingDecoder.java:208)
at org.apache.avro.generic.GenericDatumReader.readString(GenericDatumReader.java:469)
at org.apache.avro.generic.GenericDatumReader.readString(GenericDatumReader.java:459)
at org.apache.avro.generic.GenericDatumReader.readWithoutConversion(GenericDatumReader.java:191)
Surely I don't have any string to have 2gb of length. Even the total Kafka storage is a few MB bytes so I don't think its an issue in the encoded message. What could be the issue here?
Note: I wrote a simple code (without anything with Flink) to parse the Kafka message and to deserialise myself, which is working perfectly fine. This makes me trouble only when using Flink. What could be the issue?