Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jnh3_powerbi
New Member

Parquet file with Snappy compression on ADSL Gen 2

We have files in our Azure Data Lake Storage Gen 2 storage account that are parquet files with Snappy compression (very common with Apache Spark). I don't see any menu option for reading those, so after searching around I tried the following with Power Query M:

let
Source = AzureStorage.DataLake("https://oursa.dfs.core.windows.net/ourfiledir/"),
ContentColumnTable = Table.SelectColumns(Source,{"Content"}),
DecompressedContentTable = Table.TransformColumns(ContentColumnTable,{"Content",(x) => Binary.Decompress(x,Compression.Snappy)})
in
DecompressedContentTable

While the first 2 statements seem to work OK, when I add the decompression line I get the following error:

Expression.Error: Invalid compression type.
Details:
2

However, I got that compression type directly from the documentation: Compression.Snappy - PowerQuery M | Microsoft Docs

 

Is there something wrong with the code, or does Power BI not implement all of the PowerQuery functionality? 

1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

Hi @jnh3_powerbi 

 

Currently Binary.Decompress only supports Compression.GZip and Compression.Deflate types. It doesn't support Compression.Snappy. See Binary.Decompress - PowerQuery M | Microsoft Docs

 

From Parquet format - Azure Data Factory & Azure Synapse, I see that gzip type is supported. Is it possible to compress the files to gzip in ADLS Gen 2?

21091601.jpg

 

Additionally, Parquet connector is currently available in Power Query Desktop. Maybe you can try this connector. 

21091602.jpg

 

Best Regards,
Community Support Team _ Jing

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hi @jnh3_powerbi 

 

Currently Binary.Decompress only supports Compression.GZip and Compression.Deflate types. It doesn't support Compression.Snappy. See Binary.Decompress - PowerQuery M | Microsoft Docs

 

From Parquet format - Azure Data Factory & Azure Synapse, I see that gzip type is supported. Is it possible to compress the files to gzip in ADLS Gen 2?

21091601.jpg

 

Additionally, Parquet connector is currently available in Power Query Desktop. Maybe you can try this connector. 

21091602.jpg

 

Best Regards,
Community Support Team _ Jing

v-jingzhang
Community Support
Community Support

Hi @jnh3_powerbi 

 

Currently Binary.Decompress only supports Compression.GZip and Compression.Deflate types. It doesn't support Compression.Snappy. See Binary.Decompress - PowerQuery M

 

From Parquet format - Azure Data Factory & Azure Synapse, I see that gzip type is supported. Is it possible to compress the files to gzip in ADLS Gen 2?

21091601.jpg

 

Additionally, Parquet connector is currently available in Power Query Desktop. Maybe you can try this connector. 

21091602.jpg

 

This article may be helpful: Power BI reading Parquet from a Data Lake - Simple Talk (red-gate.com)

 

Best Regards,
Community Support Team _ Jing

If this post helps, please Accept it as Solution to help other members find it.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors