cancel
Showing results for 
Search instead for 
Did you mean: 
Warehousing & Analytics
cancel
Showing results for 
Search instead for 
Did you mean: 

How to change compression codec of sql warehouse written files?

alejandrofm
Valued Contributor

Hi, I'm currently starting to use SQL Warehouse, and we have most of our lake in a compression different than snappy.

How can I set the SQL warehouse to use a compression like gzip, zstd, on CREATE, INSERT, etc?

Tried this:

set spark.sql.parquet.compression.codec=gzip

And got the error:

Error running query: [_LEGACY_ERROR_TEMP_DBR_0222] org.apache.spark.sql.AnalysisException: Configuration spark.sql.parquet.compression.codec is not available.

Thanks!

1 REPLY 1

Anonymous
Not applicable

Hi @Alejandro Martinez​ 

Great to meet you, and thanks for your question!

Let's see if your peers in the community have an answer to your question. Thanks.

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.