Skip to content
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

feat(snowflake): Transpile exp.TimestampAdd #4320

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

VaggelisD
Copy link
Collaborator

  • BigQuery:
SELECT TIMESTAMP_ADD(TIMESTAMP "2008-12-25 15:30:00+00", INTERVAL 10 MINUTE)
2008-12-25 15:40:00 UTC
  • Snowflake:
SELECT TIMESTAMPADD(MINUTE, '10', CAST('2008-12-25 15:30:00+00' AS TIMESTAMPTZ))
2008-12-25 15:40:00.000 +0000

Docs

BigQuery TIMESTAMP_ADD | Snowflake TIMESTAMPADD

@georgesittas georgesittas merged commit 50a1c91 into main Oct 30, 2024
6 checks passed
@georgesittas georgesittas deleted the vaggelisd/sf_timestampadd branch October 30, 2024 16:06
thomascjohnson added a commit to thomascjohnson/sqlglot that referenced this pull request Nov 6, 2024
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