I have an Avro file containing a decimal logicalType as follow:
"type":["null",{"type":"bytes","logicalType":"decimal","precision":19,"scale":2}]
when I try to read the file with scala spark library the df schema is
MyField: binary (nullable = true)
How can I convert it into a decimal type?
You can specify schema in read operation:
or you can cast column