Skip to content

Releases: fivetran/dbt_netsuite

v1.7.0 dbt_netsuite

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 23 Jun 16:56
986fb90

PR #203 includes the following updates:

Under the Hood

  • Migrates the union_connections, apply_source_relation, and partition_by_source_relation macros to the dbt_fivetran_utils package.
  • Adds the fivetran_using_source_casing variable for case-sensitive destination support. When enabled, downstream transformations respect source casing to ensure consistent results. See the Additional Configurations section of the README for details.

Full Changelog: v1.6.1...v1.7.0

v1.6.1 dbt_netsuite

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 22 Jun 16:50
73b6b18

PR #204 includes the following update:

Bug Fix

  • Fixes a Snowflake runtime error in netsuite2__transaction_details caused by timestamp datatype mismatches.

Full Changelog: v1.6.0...v1.6.1

v1.6.0 dbt_netsuite

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 12 May 17:06
f039c52

PR #200 includes the following updates:

Schema/Data Changes (--full-refresh required after upgrading)

5 total changes • 2 possible breaking changes

Data Model(s) Change type Old New Notes
netsuite2__transaction_details
netsuite2__entity_subsidiary_relationships
Filter on VENDOR data Soft-deleted records excluded Soft-deleted records included
netsuite2__transaction_details
stg_netsuite2__transaction_accounting_lines
New field amount_linked The amount applied against another transaction (e.g. a payment applied to an invoice).
stg_netsuite2__customers New fields is_inactive, comments, url, created_at Breaking Change (dbt Core): Remove from customers_pass_through_columns if currently included.
stg_netsuite2__entities New fields date_created, _fivetran_deleted Breaking Change (dbt Core): Remove from entities_pass_through_columns if currently included.
stg_netsuite2__transaction_lines
stg_netsuite2__transactions
New field _fivetran_deleted Soft-deleted TRANSACTION records are still filtered out.

Feature Update

  • Adds Additional Customer Columns (customers_pass_through_columns in dbt Core) and Additional Item Columns (items_pass_through_columns in dbt Core) to Quickstart, persisting chosen custom columns from the CUSTOMER and ITEM source tables. These fields are brought into netsuite2__transaction_details.

Full Changelog: v1.5.1...v1.6.0

v1.6.0-a1 dbt_netsuite

Pre-release

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 28 Apr 22:14

PR #200 includes the following updates:

Schema/Data Changes (--full-refresh required after upgrading)

2 total changes • 0 possible breaking changes

Data Model(s) Change type Old New Notes
netsuite2__transaction_details
netsuite2__entity_subsidiary_relationships
Filter on VENDOR data Soft-deleted records excluded Soft-deleted records included
netsuite2__transaction_details New field amount_linked The amount applied against another transaction (e.g. a payment applied to an invoice).
dbt Core/Additional Details

5 total changes • 2 possible breaking changes

Data Model(s) Change type Old New Notes
stg_netsuite2__customers New fields is_inactive, comments, url, created_at Breaking Change: Remove from customers_pass_through_columns if currently included.
stg_netsuite2__entities New fields date_created, _fivetran_deleted Breaking Change: Remove from entities_pass_through_columns if currently included.
stg_netsuite2__transaction_accounting_lines New field amount_linked
stg_netsuite2__transaction_lines New field _fivetran_deleted
stg_netsuite2__transactions New field _fivetran_deleted Soft-deleted records are still filtered out.

Feature Update

  • Adds Additional Customer Columns (customers_pass_through_columns in dbt Core) and Additional Item Columns (items_pass_through_columns in dbt Core) to Quickstart, persisting chosen custom columns from the CUSTOMER and ITEM source tables. These fields are brought into netsuite2__transaction_details.

Full Changelog: v1.5.1...v1.6.0-a1

v1.5.1 dbt_netsuite

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 21 Apr 14:10
a9ea69a

PR #199 includes the following updates:

Bug Fix

  • Fixes a run error in netsuite2__balance_sheet that can occur when the Additional Account Columns (accounts_pass_through_columns) variable is configured.

Full Changelog: v1.5.0...v1.5.1

v1.5.0 dbt_netsuite

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 20 Apr 14:01
4f3464e

This release includes the following updates:

Feature Update

  • Adds new variables to aggregate the netsuite2__balance_sheet and netsuite2__income_statement models, removing transactions and transaction lines from their granularity. By default, these models will continue to output data at the transaction line level. (PR #193)
    • netsuite2__aggregate_balance_sheet (default: false) When set to true:
      • netsuite2__balance_sheet outputs data at the account + accounting_period + subsidiary + account_category grain.
      • The primary key (balance_sheet_id) is hashed on (accounting_period_id, account_name, account_id, subsidiary_id, account_category, source_relation), plus to_subsidiary_id and accounting_book_id if included.
      • balance_sheet_transaction_detail_columns pass-through columns are ignored.
      • netsuite2__balance_sheet is run as a table instead of incrementally.
    • netsuite2__aggregate_income_statement (default: false) When set to true:
      • netsuite2__income_statement outputs data at the account + accounting_period + department + location + class grain.
      • The primary key (income_statement_id) is hashed on (accounting_period_id, account_name, subsidiary_id, department_id, location_id, class_id, source_relation), plus to_subsidiary_id and accounting_book_id if included.
      • income_statement_transaction_detail_columns pass-through columns are ignored.
      • netsuite2__income_statement is run as a table instead of incrementally.
  • Adds support for Fivetran's history mode for the Netsuite2 source tables that currently support it (PR #195). When history mode is enabled in your Fivetran connector, the staging models below now filter on _fivetran_active to include only current, active records. Users without history mode enabled are unaffected, while users with history mode will see a drop in records (full refresh recommended):
    • stg_netsuite2__accounting_books
    • stg_netsuite2__accounting_periods
    • stg_netsuite2__accounts
    • stg_netsuite2__currencies
    • stg_netsuite2__customer_subsidiary_relationships
    • stg_netsuite2__customers
    • stg_netsuite2__departments
    • stg_netsuite2__employees
    • stg_netsuite2__entities
    • stg_netsuite2__entity_address
    • stg_netsuite2__items
    • stg_netsuite2__jobs
    • stg_netsuite2__location_main_address
    • stg_netsuite2__locations
    • stg_netsuite2__subsidiaries
    • stg_netsuite2__transactions
    • stg_netsuite2__vendor_categories
    • stg_netsuite2__vendor_subsidiary_relationships
    • stg_netsuite2__vendors

Only currently active records are included, while inactive records are filtered out. Please open a Feature Request if you would like historical records to be persisted.

Under the Hood

  • Adds partition_by_source_relation() macro to avoid constant expression errors in Redshift.
  • Limits the current accounting period from consistency data validation tests.
  • Consolidates duplicative joins in netsuite2__balance_sheet
  • Adds _fivetran_active to the get_netsuite2_*_columns() macros and src_netsuite2.yml source definitions for all 19 affected tables.
  • Documents _fivetran_active in models/docs.md.

Full Changelog: v1.4.1...v1.5.0

v1.4.1 dbt_netsuite

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 14 Apr 20:57
8c23f71

PR #197 includes the following update:

Bug Fix

  • Fixes the adapter.dispatch() call in the netsuite_union_relations macro, which was incorrectly dispatching to the zendesk namespace instead of netsuite.

Full Changelog: v1.4.0...v1.4.1

v1.5.0-a2 dbt_netsuite

Pre-release

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 10 Apr 19:53

PR #193 includes the following updates:

Feature Update

  • Adds new variables to roll the netsuite2__balance_sheet and netsuite2__income_statement models up to the account and accounting period grain (and subsidiary and accounting book if those features are enabled). By default, these models will continue to output data at the transaction line level:
    • netsuite2__aggregate_balance_sheet (default: false): Set to true to roll netsuite2__balance_sheet up to the account and accounting period grain. When aggregated, balance_sheet_transaction_detail_columns pass-through columns are ignored and the model will be run as a table instead of incrementally.
    • netsuite2__aggregate_income_statement (default: false): Set to true to roll netsuite2__income_statement up to the account and accounting period grain. When aggregated, income_statement_transaction_detail_columns pass-through columns are ignored and the model will be run as a table instead of incrementally.

Under the Hood

  • Adds partition_by_source_relation() macro to avoid constant expression errors in Redshift.

Full Changelog: v1.5.0-a1...v1.5.0-a2

v1.5.0-a1 dbt_netsuite

Pre-release

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 17 Mar 21:55

PR #193 includes the following updates:

Schema/Data Change

3 total changes • 3 possible breaking changes

Data Model(s) Change type Old New Notes
netsuite2__balance_sheet Default Materialization Incremental Table Can still be run incrementally by setting the netsuite2__balance_sheet_use_incremental variable to true.
netsuite2__income_statement Default Materialization Incremental Table Can still be run incrementally by setting the netsuite2__income_statement_use_incremental variable to true.
netsuite2__transaction_details Default Materialization Incremental Table Can still be run incrementally by setting the netsuite2__transaction_details_use_incremental variable to true.

Feature Update

  • Adds the option to aggregate the netsuite2__balance_sheet and netsuite2__income_statement past transactions and to the account and accounting period grain.
    • To do so, set the following variable(s) to false. Both default to true, preserving one row per transaction line with transaction_id and transaction_line_id in the output:
vars:
    netsuite2__balance_sheet_transaction_level: false # True by default. Set to false to roll up to account/period level in netsuite2__balance_sheet.
    netsuite2__income_statement_transaction_level: false # True by default. Set to false to roll up to account/period level in netsuite2__income_statement.

Note: When set to false, any columns passed via balance_sheet_transaction_detail_columns or income_statement_transaction_detail_columns are ignored.

Under the Hood

  • Adds partition_by_source_relation() macro to avoid constant expression errors in Redshift.

Full Changelog: v1.4.0...v1.5.0-a1

v1.4.0 dbt_netsuite

Choose a tag to compare

@fivetran-data-model-bot fivetran-data-model-bot released this 20 Jan 16:02
e31496a

PR #190 includes the following updates:

Documentation

  • Updates README with standardized Fivetran formatting.

Under the Hood

  • In the quickstart.yml file:
    • Adds supported_vars for Quickstart UI customization.

Full Changelog: v1.3.0...v1.4.0