spark-avro
spark-avro copied to clipboard
How to read Byte Datatype
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 ?