-
Notifications
You must be signed in to change notification settings - Fork 35
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
Release branch: v0.14.0 #139
Conversation
Update customer and vendor joins
…com/fivetran/dbt_netsuite into bugfix/update-customer-vendor-joins
…oins [Bug Fix]: Update customer and vendor joins in transaction details
* bugfix/too-many-partitions * validation schema addition * docs regen and final changes before review * intermediate model conditional update * Apply suggestions from code review Co-authored-by: Avinash Kunnath <108772760+fivetran-avinash@users.noreply.github.com> * removing conditional logic --------- Co-authored-by: Avinash Kunnath <108772760+fivetran-avinash@users.noreply.github.com>
CHANGELOG.md
Outdated
|
||
## Upstream Netsuite Source Breaking Changes (Full refresh required after upgrading) | ||
- Casted specific timestamp fields across all staging models as dates where the Netsuite UI does not perform timezone conversion. Keeping these fields as type timestamp causes issues in reporting tools that perform automatic timezone conversion. | ||
- Adds additional commonly used fields within the `stg_netsuite2__*` models. **IMPORTANT**: Nearly all of these models where fields are being added have pass-through functionality. So you will need to remove these fields from your passthrough variable setup if they are currently present to avoid errors. |
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.
- Adds additional commonly used fields within the `stg_netsuite2__*` models. **IMPORTANT**: Nearly all of these models where fields are being added have pass-through functionality. So you will need to remove these fields from your passthrough variable setup if they are currently present to avoid errors. | |
- Adds additional commonly used fields within the `stg_netsuite2__*` models. | |
> **IMPORTANT**: Nearly all of the affected models have pass-through functionality. If you have already been using passthrough column variables to include the newly added fields (without aliases), you **MUST** remove the fields from your passthrough variable configuration in order to avoid duplicate column errors. |
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.
not sure how the > section looks within a bulleted list but just wanna be as clear as possible
CHANGELOG.md
Outdated
- Vendor fields impacted: `vendor_category_name`, `vendor_name`, `vendor_create_date`. | ||
|
||
## Feature Updates | ||
- New fields `customer_alt_name` and `vendor_alt_name` were introduced into `netsuite2__transaction_details`, after being added into the `stg_netsuite2__customers` and `stg_netsuite2__vendors` models in the most recent release of `dbt_netsuite`. [You can view the release notes](https://github.com/fivetran/dbt_netsuite/releases/tag/v0.14.0) for more details. |
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.
should the release notes point to https://github.com/fivetran/dbt_netsuite_source/releases/tag/v0.11.0?
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.
Hmm, actually, this shouldn't be here at all, since a link to the source release notes are on the next line.
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.
It's a little repetitive but I'll keep it in.
CHANGELOG.md
Outdated
## Feature Updates | ||
- New fields `customer_alt_name` and `vendor_alt_name` were introduced into `netsuite2__transaction_details`, after being added into the `stg_netsuite2__customers` and `stg_netsuite2__vendors` models in the most recent release of `dbt_netsuite`. [You can view the release notes](https://github.com/fivetran/dbt_netsuite/releases/tag/v0.14.0) for more details. | ||
- We added the `employee` model in the [`v0.11.0` release of `dbt_netsuite_source`](https://github.com/fivetran/dbt_netsuite_source/releases/tag/v0.11.0), which will materialize `stg_netsuite2__employees` from the source package by default. | ||
- Since this model is only used by a subset of customers, we've introduced the variable `netsuite2__using_employees` to allow users who don't utilize the `employee` table in Netsuite2 the ability to disable that functionality within your `dbt_project.yml`. [Instructions are available in the README](https://github.com/fivetran/dbt_netsuite/?tab=readme-ov-file#step-5-disable-models-for-non-existent-sources-netsuite2-only). |
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.
would be good to mention this is True by default and dynamically enabled for Quickstart users
packages.yml
Outdated
# - package: fivetran/netsuite_source | ||
# version: [">=0.10.0", "<0.11.0"] | ||
|
||
- git: https://github.com/fivetran/dbt_netsuite_source.git |
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.
reminder to switch
CHANGELOG.md
Outdated
|
||
## Upstream Netsuite Source Breaking Changes (Full refresh required after upgrading) | ||
- Casted specific timestamp fields across all staging models as dates where the Netsuite UI does not perform timezone conversion. Keeping these fields as type timestamp causes issues in reporting tools that perform automatic timezone conversion. | ||
- Adds additional commonly used fields within the `stg_netsuite2__*` models. **IMPORTANT**: Nearly all of these models where fields are being added have pass-through functionality. So you will need to remove these fields from your passthrough variable setup if they are currently present to avoid errors. |
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.
also which end models had new fields added to them? could be good to highlight here (or are they in the feature updates section?)
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 will be called out in the dbt_netsuite_source
release since the changes are being made there.
I linked to it in line 17, but I updated the wordage to make it clearer where to find these fields.
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-jamie Release notes addressed.
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: #130, #109
This PR will result in the following new package version: 0.14.0
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
Breaking Changes (Full refresh required after upgrading)
partition_by
logic adjusted to include a granularity of a month. This change should only impact BigQuery warehouses and was applied to avoid the commontoo many partitions
error users have experienced due to over-partitioning by day. Therefore, adjusting the partition to a monthly granularity will increase the partition windows and allow for more performant querying.int_netsuite2__tran_with_converted_amounts
netsuite2__balance_sheet
netsuite2__income_statement
netsuite2__transaction_details
Upstream Netsuite Source Breaking Changes (Full refresh required after upgrading)
stg_netsuite2__*
models. IMPORTANT: Nearly all of these models where fields are being added have pass-through functionality. So you will need to remove these fields from your passthrough variable setup if they are currently present to avoid errors.dbt_netsuite_source
release for more details regarding the upstream changes.Bug Fixes
netsuite2__transaction_details
to select the appropriate customer and vendor values based on the whether the transaction type is a customer invoice or credit, or a vendor bill or credit.company_name
,customer_city
,customer_state
,customer_zipcode
,customer_country
,customer_date_first_order
,customer_external_id
.vendor_category_name
,vendor_name
,vendor_create_date
.Feature Updates
customer_alt_name
andvendor_alt_name
were introduced intonetsuite2__transaction_details
, after being added into thestg_netsuite2__customers
andstg_netsuite2__vendors
models in the most recent release ofdbt_netsuite
. You can view the release notes for more details.employee
model in thev0.11.0
release ofdbt_netsuite_source
, which will materializestg_netsuite2__employees
from the source package by default.netsuite2__using_employees
to allow users who don't utilize theemployee
table in Netsuite2 the ability to disable that functionality within yourdbt_project.yml
. Instructions are available in the README.Under the Hood
Contributors
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:
If you had to summarize this PR in an emoji, which would it be?
💃