Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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?
Solved! Go to Solution.
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?
Additionally, Parquet connector is currently available in Power Query Desktop. Maybe you can try this connector.
Best Regards,
Community Support Team _ Jing
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?
Additionally, Parquet connector is currently available in Power Query Desktop. Maybe you can try this connector.
Best Regards,
Community Support Team _ Jing
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?
Additionally, Parquet connector is currently available in Power Query Desktop. Maybe you can try this connector.
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.