-
Notifications
You must be signed in to change notification settings - Fork 615
Closed
ClickHouse/ClickHouse
#63377Labels
Milestone
Description
Describe the bug
Clickhouse allows user to set query to multiple level including at the query level. When the setting session_timezone is set in dbeaver , the setting is not being picked up. I have looked at this issue #604 where the timezone is set correctly for toDateTime but it does not seem to be the case when using this setting. Whenever I use session_timezone, the datetime uses the wrong timezone.
In this query, the date should be identical to the second column not the third. Running it directly using clickhouse-client, the result of this query should be the following:
By changing the session_timezone, the value in the first column should change to adapt to the new timezone.
Configuration
ClickHouse server
- ClickHouse Server version: 23.8.2.7
- Statement:
WITH temp AS
(
SELECT 1696431276 AS date
)
SELECT
toDateTime(date),
toDateTime(date, 'America/New_York'),
toDateTime(date, 'UTC')
FROM temp
SETTINGS session_timezone = 'America/Vancouver'
vladaman

