Skip to content

fix(snowflake): transpile bigquery CURRENT_DATE with timezone#5387

Merged
geooo109 merged 3 commits intomainfrom
geooo109/snowflake_current_date
Jul 10, 2025
Merged

fix(snowflake): transpile bigquery CURRENT_DATE with timezone#5387
geooo109 merged 3 commits intomainfrom
geooo109/snowflake_current_date

Conversation

@geooo109
Copy link
Collaborator

@geooo109 geooo109 commented Jul 10, 2025

This PR adds transpilation support for CURRENT_DATE with timezone of BigQuery to Snowflake.

Snowflake doesn't support CURRENT_DATE('timezone'), so we implement this by using the CURRENT_TIMESTAMP combined with CONVERT_TIMEZONE and CAST.

DOCS
BigQuery CURRENT_DATE
Snowflake CURRENT_TIMESTAMP
Snowflake CONVERT_TIMEZONE
Snowflake TO_DATE

@geooo109 geooo109 merged commit 252469d into main Jul 10, 2025
6 checks passed
@geooo109 geooo109 deleted the geooo109/snowflake_current_date branch July 10, 2025 11:56
georgesittas pushed a commit that referenced this pull request Jul 16, 2025
* fix(snowflake): transpile bigquery CURRENT_DATE with timezone

* PR feedback 1 (vag)

* fix test
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.

2 participants