From 9f221e66eb2dd83b0e6beb528a694f4933953571 Mon Sep 17 00:00:00 2001 From: sfc-gh-madkins <82121043+sfc-gh-madkins@users.noreply.github.com> Date: Mon, 15 Aug 2022 22:50:49 -0500 Subject: [PATCH] fix: Force Snowflake Session to Timezone UTC (#3083) Signed-off-by: Miles Adkins Signed-off-by: Miles Adkins --- sdk/python/feast/infra/utils/snowflake_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/python/feast/infra/utils/snowflake_utils.py b/sdk/python/feast/infra/utils/snowflake_utils.py index 6ba9e54489..6b3500b605 100644 --- a/sdk/python/feast/infra/utils/snowflake_utils.py +++ b/sdk/python/feast/infra/utils/snowflake_utils.py @@ -88,6 +88,8 @@ def get_snowflake_conn(config, autocommit=True) -> SnowflakeConnection: **kwargs, ) + conn.cursor().execute("ALTER SESSION SET TIMEZONE = 'UTC'", _is_internal=True) + return conn except KeyError as e: raise SnowflakeIncompleteConfig(e)