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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors