spark-avro icon indicating copy to clipboard operation
spark-avro copied to clipboard

How to read Byte Datatype

Open anayyar82 opened this issue 8 years ago • 0 comments

I have avro data coming with Bytes , how to read it.

root |-- col1: string (nullable = true) |-- body: binary (nullable = false)

when i do like val bytes = df.select("body")

it's not returning , i tried to convert to toString but didnt work

any suggestion ?

anayyar82 avatar Aug 25 '16 03:08 anayyar82