From 13991c39d2caaadcfd64d4a8d33a60285f3b714a Mon Sep 17 00:00:00 2001 From: Anshul Khandelwal <12948312+k-anshul@users.noreply.github.com> Date: Thu, 23 May 2024 17:11:17 +0530 Subject: [PATCH] set session timezone as UTC (#4949) --- runtime/drivers/clickhouse/olap.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/drivers/clickhouse/olap.go b/runtime/drivers/clickhouse/olap.go index 37caa61c1e4..244ff3302dd 100644 --- a/runtime/drivers/clickhouse/olap.go +++ b/runtime/drivers/clickhouse/olap.go @@ -107,7 +107,7 @@ func (c *connection) Execute(ctx context.Context, stmt *drivers.Statement) (res return nil, err } - stmt.Query += "\n SETTINGS cast_keep_nullable = 1, join_use_nulls = 1" + stmt.Query += "\n SETTINGS cast_keep_nullable = 1, join_use_nulls = 1, session_timezone = 'UTC'" if c.config.EnableCache { stmt.Query += ", use_query_cache = 1" }