v0.14.0 dbt_netsuite
fivetran-data-model-bot
released this
25 Sep 23:37
·
4 commits
to main
since this release
For Netsuite2, PR #138 and PR #132 include the following updates:
Breaking Changes (Full refresh required after upgrading)
- Partitioned models have had the
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. - This change was applied to the following models:
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)
- 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 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.
- Please refer to the v0.11.0
dbt_netsuite_source
release for more details regarding the upstream changes to view the fields that were added and impacted.
Bug Fixes
- Updates logic in
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.- Customer fields impacted:
company_name
,customer_city
,customer_state
,customer_zipcode
,customer_country
,customer_date_first_order
,customer_external_id
. - Vendor fields impacted:
vendor_category_name
,vendor_name
,vendor_create_date
.
- Customer fields impacted:
Feature Updates
- New fields
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_source
. - We added the
employee
model in thev0.11.0
release ofdbt_netsuite_source
, which will materializestg_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 theemployee
table in Netsuite2 the ability to disable that functionality within yourdbt_project.yml
. This value is set to true by default. Instructions are available in the README for how to disable this variable.
- Since this model is only used by a subset of customers, we've introduced the variable
Under the Hood
- Consistency tests added for each Netsuite2 end model in order to be used during integration test validations.
Contributors
Full Changelog: v0.13.0...v0.14.0