it is possible to set the time zone at the session level using the SET TIME ZONE statement in Databricks SQL. This allows users to control the local timezone used for timestamp operations within their session. However, there is no direct option of user-level time zone preferences that would apply to all their SQL queries across different sessions.
Here are the relevant details:
- Session-Level Time Zone Setting: You can set the time zone for a session using the SET TIME ZONE statement. This setting will apply to all timestamp operations within that session.
SET TIME ZONE = 'America/Los_Angeles';
SELECT current_timezone(); -- Returns 'America/Los_Angeles'
You can review this: https://docs.databricks.com/en/sql/language-manual/parameters/timezone.html