I am attempting to read/write parquet files following one of the examples. When I write data to a parquet file using this library and read it, it behaves as expected. When I try to read a parquet file that was written by Apache Spark, I get values that are not decoded properly. I have tried all the different conversion types when defining my data structure but nothing seems to work. Has anyone run into an issue like this before or have any insight on what I am doing wrong? The parquet I'm trying to read is definitely because I have been able to parse it with an online parquet reader. Thanks!
I am attempting to read/write parquet files following one of the examples. When I write data to a parquet file using this library and read it, it behaves as expected. When I try to read a parquet file that was written by Apache Spark, I get values that are not decoded properly. I have tried all the different conversion types when defining my data structure but nothing seems to work. Has anyone run into an issue like this before or have any insight on what I am doing wrong? The parquet I'm trying to read is definitely because I have been able to parse it with an online parquet reader. Thanks!
Code:
Output:
Expected Output: