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

fix: cast number param for dateadd to int for databricks DNA-15944 (DNA-20849) #82

Merged
merged 2 commits into from
Nov 17, 2023

Conversation

JasperSelmanUiPath
Copy link
Contributor

@JasperSelmanUiPath JasperSelmanUiPath commented Nov 17, 2023

Description

Explicitly cast number to INT in the dateadd macro for the Databricks part. Without this cast, we cannot use the dateadd function with day, week, month, quarter or year in combination with the to_integer pm_utils macro. That last macro returns a BIGINT which is not accepted by the functions used in the implementation for the specified periods.

Release

  • Direct release (main)
  • Merge to dev (or other) branch
    • Why:

Did you consider?

  • Does it Work on Automation Suite / SQL Server
  • Does it Work on Automation Cloud / Snowflake
    - [ ] What is the performance impact?
  • The version number in dbt_project.yml

@JasperSelmanUiPath JasperSelmanUiPath self-assigned this Nov 17, 2023
@JasperSelmanUiPath JasperSelmanUiPath merged commit bb01974 into main Nov 17, 2023
4 checks passed
@JasperSelmanUiPath JasperSelmanUiPath deleted the fix/add_int_casting_for_dateadd_databricks branch November 17, 2023 13:45
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