Skip to content

Commit

Permalink
set session timezone as UTC (#4949)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anshul committed May 27, 2024
1 parent 150eb58 commit 13991c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/drivers/clickhouse/olap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 13991c3

Please sign in to comment.