cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set timezone for SQL Warehouse?

Mado
Valued Contributor II

Hi,

I want to change the default time zone for SQL Warehoue in the SQL Persona.

When I try to Edit the SQL warehouse settings in the "SQL Warehouses" section, I am not able to find any setting where I can set the time zone.

I am aware that I can set the time zone by running the query "SET TIME ZONE 'GMT+10';". However, I don't want t repeat it every time I run a query in the query editor. Instead, I want to see the local time zone as the default time zone of the SQL warehouse.

1 REPLY 1

Mado
Valued Contributor II

Thanks.

I am aware of the SET TIME ZONE command but I need to run this command every time I start the SQL warehouse.

I am looking for a way to change the default time zone of the SQL warehouse. Something like "spark.sql.session.timeZone GMT+10" that I can set in the interactive cluster config.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group