Skip to content

Commit 01d3fc3

Browse files
fix: Force Snowflake Session to Timezone UTC
Signed-off-by: Miles Adkins <miles.adkins@snowflake.com>
1 parent 66d2c76 commit 01d3fc3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/python/feast/infra/utils/snowflake_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def get_snowflake_conn(config, autocommit=True) -> SnowflakeConnection:
8888
**kwargs,
8989
)
9090

91+
conn.cursor().execute("ALTER SESSION SET TIMEZONE = 'UTC'", _is_internal=True)
92+
9193
return conn
9294
except KeyError as e:
9395
raise SnowflakeIncompleteConfig(e)

0 commit comments

Comments
 (0)