Skip to content

Add macro for dateadd, casting to datetime#35

Merged
dataders merged 2 commits into
dbt-msft:mainfrom
b-per:dateadd-cast-datetime
Mar 26, 2021
Merged

Add macro for dateadd, casting to datetime#35
dataders merged 2 commits into
dbt-msft:mainfrom
b-per:dateadd-cast-datetime

Conversation

@b-per
Copy link
Copy Markdown
Contributor

@b-per b-per commented Mar 25, 2021

Without casting, a SQL error is raised when we add intervals smaller than the day.
The same casting has been made in the BigQuery version of the macro.

b-per and others added 2 commits March 25, 2021 23:49
Without casting, a SQL error is raised when we add intervals smaller than the day
Copy link
Copy Markdown
Contributor

@dataders dataders left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @b-per!

@dataders dataders merged commit d4e886b into dbt-msft:main Mar 26, 2021
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