Re: How to handle avro BYTES type in flink

2019-09-12 Thread Catlyn Kong
Turns out there was some other deserialization problem unrelated to this. On Mon, Sep 9, 2019 at 11:15 AM Catlyn Kong wrote: > Hi fellow streamers, > > I'm trying to support avro BYTES type in my flink application. Since > ByteBuffer isn't a supported type, I'm

How to handle avro BYTES type in flink

2019-09-09 Thread Catlyn Kong
Hi fellow streamers, I'm trying to support avro BYTES type in my flink application. Since ByteBuffer isn't a supported type, I'm converting the field to an Array[Byte]: case Type.BYTES => (avroObj: AnyRef) => { if (avroObj == null) { null } else { val byteBuffer = avroOb