cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Warehousing & Analytics
Engage in discussions on data warehousing, analytics, and BI solutions within the Databricks Community. Share insights, tips, and best practices for leveraging data for informed decision-making.
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.