-
Notifications
You must be signed in to change notification settings - Fork 20
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
Update variable declarations #59
base: main
Are you sure you want to change the base?
Conversation
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.
Thanks @fivetran-avinash a few questions and comments before approval.
[PR #59](https://github.com/fivetran/dbt_netsuite_source/pull/59) includes the following updates: | ||
|
||
## Macro Updates | ||
- Introduced a local version of the `fill_pass_through_columns` macro that directly calls the variables within our staging models. This removes the existing string-to-variable conversion and leads to cleaner parsing. |
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.
Can you also include a note here that this should result in no changes to the macro functionality and no changes on the user end are required.
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.
added.
@@ -41,7 +41,7 @@ final as ( | |||
_fivetran_deleted | |||
|
|||
--The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model | |||
{{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }} | |||
{{ netsuite_source.fill_pass_through_columns(var('accounts_pass_through_columns')) }} |
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.
Shouldn't we also add a default value for these just in case?
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.
Added a default [] value to each of the new macro calls.
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-joemarkiewicz This is ready for re-review.
PR Overview
This PR will address the following Issue/Feature: Internal Height ticket
This PR will result in the following new package version: 0.11.1
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
Macro Updates
fill_pass_through_columns
macro that directly calls the variables within our staging models. This removes the existing string-to-variable conversion and leads to cleaner parsing.fill_pass_through_columns
macro.stg_netsuite
andstg_netsuite2
models impacted include:accounts
,classes
,consolidated_exchange_rates
,customers
,departments
,items
,locations
,subsidiaries
,transaction_lines
,transactions
, andvendors
.persist_pass_through_columns
macro in thedbt_netsuite
package. See the release notes for more details.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 share any and all of your validation steps:
Ran on multiple variations of passthrough columns (with name, with alias, with multiple passthrough columns, with no passthrough columns).
If you had to summarize this PR in an emoji, which would it be?
🚲