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

Magic bot 36c3c8115b #13

Merged
merged 6 commits into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# dbt_netsuite_source v0.4.1

## Features
- Added this changelog to capture iterations of the package!
- Added the `subsidiaries_pass_through_columns` variable to be leveraged within the `stg_netsuite__subsidiaries` model. This variable will allow users to pass through fields which are not natively included to the package staging model. This variable is empty by default and may be overridden within a users root `dbt_project.yml`. ([#13](https://github.com/fivetran/dbt_netsuite_source/pull/13))
- Added the `consolidated_exchange_rates_pass_through_columns` variable to be leveraged within the `stg_netsuite__consolidated_exchange_rates` model. This variable will allow users to pass through fields which are not natively included to the package staging model. This variable is empty by default and may be overridden within a users root `dbt_project.yml`. ([#13](https://github.com/fivetran/dbt_netsuite_source/pull/13))

## Contributors
- [phillem15](https://github.com/phillem15) ([#13](https://github.com/fivetran/dbt_netsuite_source/pull/13))

# dbt_netsuite_source v0.4.0
🎉 dbt v1.0.0 Compatibility 🎉
## 🚨 Breaking Changes 🚨
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ vars:
transaction_lines_pass_through_columns: ['transaction_lines_field']
customers_pass_through_columns: ['customers_field']
locations_pass_through_columns: ['this_new_location','lets_also_add_this_location_field']
subsidiaries_pass_through_columns: ['subsidiaries_field']
consolidated_exchange_rates_pass_through_columns: ['this_exchange_rate','that_exchange_rate']
```

### Changing the Build Schema
Expand Down
4 changes: 3 additions & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ config-version: 2
require-dbt-version: [">=1.0.0", "<2.0.0"]

name: 'netsuite_source'
version: '0.4.0'
version: '0.4.1'

models:
netsuite_source:
Expand Down Expand Up @@ -38,6 +38,8 @@ vars:
transaction_lines_pass_through_columns: []
customers_pass_through_columns: []
locations_pass_through_columns: []
subsidiaries_pass_through_columns: []
consolidated_exchange_rates_pass_through_columns: []

clean-targets:
- target
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'netsuite_source_integration_tests'
version: '0.3.2'
version: '0.4.1'
profile: 'integration_tests'
config-version: 2

Expand Down
7 changes: 7 additions & 0 deletions models/stg_netsuite__consolidated_exchange_rates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ final as (
to_subsidiary_id,
_fivetran_deleted

--The below script allows for pass through columns.
{% if var('consolidated_exchange_rates_pass_through_columns') %}
,
{{ var('consolidated_exchange_rates_pass_through_columns') | join (", ")}}

{% endif %}

from fields
)

Expand Down
7 changes: 7 additions & 0 deletions models/stg_netsuite__subsidiaries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ final as (
parent_id,
_fivetran_deleted

--The below script allows for pass through columns.
{% if var('subsidiaries_pass_through_columns') %}
,
{{ var('subsidiaries_pass_through_columns') | join (", ")}}

{% endif %}

from fields
)

Expand Down