Skip to content

Fixing how timezone conversion operations get translated to a Snowflake Query #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 3, 2022

Conversation

MananTheMoon
Copy link

Our _convert_field_to_tz method was passing parameters into SQL based on the parameters expected in MySql's CONVERT_TZ function definition, and not the parameters expected by Snowflake's CONVERT_TIMESTAMP function definition.

Essentially, we had the source and target timezone parameters in the wrong order. This PR is to fix that, such that it matches this expectation from Snowflake:

CONVERT_TIMEZONE( <source_tz> , <target_tz> , <source_timestamp_ntz> )

@MananTheMoon MananTheMoon merged commit e673967 into master Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants