-
Notifications
You must be signed in to change notification settings - Fork 17
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
add databricks to backtick conditional #94
Conversation
…. When using Databricks, the macro should use the same replace filter as BigQuery since the backtick syntax is the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-reneeli thanks working through this PR and incorporating the customers PR into these changes. However, I do have a few comments below that need to be applied before approving. Let me know if you have any questions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! One last thing I noticed is that the integration tests are not actually testing the view_sql
logic. Would you be able to add the following new row to the fivetran_formula
model within the integration tests seed. This will ensure we are testing the view_sql
(which you updated in this PR) for all tests going forward.
account_type_c,opportunity,account type,,"select main__table.id, ( CAST( account__alias.type AS STRING ) ) as account_type_c from opportunity as main__table left join account as account__alias on main__table.account_id = account__alias.id",2023-07-19 05:05:17.411 +0000
Thanks for catching that, added that row to be able to test the view_sql macro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR Overview
This PR will address the following Issue/Feature:
#91
This PR will result in the following new package version: v0.9.1
Add databricks to the conditional in
sfdc_formula_view_sql
macro so backticks correctly compilePlease detail what change(s) this PR introduces and any additional information that should be known during the review of this PR:
PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
Before marking this PR as "ready for review" the following have been applied:
Detailed Validation
Please acknowledge that the following validation checks have been performed prior to marking this PR as "ready for review":
This error was missed before because the package wasn't checked to be compatible for the case where full_statement_version=false, only the default true. Therefore we added an additional run in the integration test to use full_statement_version=false. This will recreate and test the issue as well.
Standard Updates
Please acknowledge that your PR contains the following standard updates:
dbt Docs
Please acknowledge that after the above were all completed the below were applied to your branch:
If you had to summarize this PR in an emoji, which would it be?
💃