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.

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local community—sign up today to get started!

Sign Up Now