I have a parquet file, and each columns are different serialized proto-buffer. When I am trying to by
Dataset<Row> df = spark.read().parquet("test.parquet");
df.printSchema();
I got
root
|-- A: binary (nullable = true)
|-- B: binary (nullable = true)
But I would like to see
root
|-- A: struct
|-- a: string
|-- b: int
|-- B: struct
|-- c: int
|-- d: string
Is anyway I can read the parquet file, and deserialize each binary column into struct? I was thinking to use Apache Parquet Proto, but isn't the case for me, because it assumes the columns of the parquet file are already in struct format, not binary.