I have a parquet file i am reading with spark:
SparkSession.builder()
.appName("test")
.config("spark.sql.parquet.compression.codec", "gzip")
.read().parquet(resourcePath)
This is the code snippet used to read the parquet file.
When the file is not compressed all goes fine, but when i gzip it:
gzip fileName.parquet
Then i get a RuntimeException:
is not a Parquet file. expected magic number at tail [80, 65, 82, 49] but found [44, 64, 91, 0]
but gzip format should be supported, it s supported, what am i doing wrong here?