Skip to content

Commit

Permalink
fix: Force Snowflake Session to Timezone UTC (#3083)
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Adkins <miles.adkins@snowflake.com>

Signed-off-by: Miles Adkins <miles.adkins@snowflake.com>
  • Loading branch information
sfc-gh-madkins authored Aug 16, 2022
1 parent 2913c6d commit 9f221e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/python/feast/infra/utils/snowflake_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f221e6

Please sign in to comment.