on-internet
← Community

Combining small Parquet files results in bigger total size than the original

Stack Overflow ·

My Azure Data Lake Storage folder contains Parquet files (snappy compressed) from Kafka Connect. I made a shortcut from the Azure Data Lake Storage to Fabric Lakehouse and work on the files in Fabric Notebook, using Spark. I combine the many small files to a few bigger files. I tried reading the small files into df, repartitioned it and writing into snappy compressed Parquet (attempt #1). I also tried grouping the small files into my desired size, then read the group and coalesce into 1 (attempt #2). The small files are 9GB, but the target files of both approaches up to 21GB. What do I do wron

Comments

Sign in or sign up to comment and upvote.

No comments yet.