Skip to content
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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# dbt_netsuite v1.6.1
[PR #204](https://github.com/fivetran/dbt_netsuite/pull/204) includes the following update:

## Bug Fix
- Fixes a Snowflake runtime error in `netsuite2__transaction_details` caused by timestamp datatype mismatches.

# dbt_netsuite v1.6.0
[PR #200](https://github.com/fivetran/dbt_netsuite/pull/200) includes the following updates:

Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config-version: 2
name: 'netsuite'
version: '1.6.0'
version: '1.6.1'
require-dbt-version: [">=1.3.0", "<3.0.0"]

models:
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
name: 'netsuite_integration_tests'
version: '1.6.0'
version: '1.6.1'
profile: 'integration_tests'
config-version: 2

models:
+persist_docs:
relation: true
columns: "{{ false if target.type in ('databricks') else true }}"
+schema: "{{ 'netsuite_integrations_tests_sqlw' if target.name == 'databricks-sql' else 'netsuite' }}"
# +schema: "netsuite_{{ var('directed_schema','dev') }}" ## To be used for validation tests
+schema: "netsuite_{{ var('directed_schema','dev') }}"
Comment thread
fivetran-catfritz marked this conversation as resolved.

vars:
netsuite_schema: netsuite_integrations_tests
Expand Down
2 changes: 1 addition & 1 deletion models/netsuite2/netsuite2__transaction_details.sql
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ transaction_details as (
when lower(transactions.transaction_type) in ('vendbill', 'vendcred') then vendors__transactions.company_name
else vendors__transaction_lines.company_name
end as vendor_name,
case
case
when lower(transactions.transaction_type) in ('vendbill', 'vendcred') then vendors__transactions.create_date_at
else vendors__transaction_lines.create_date_at
end as vendor_create_date,
Expand Down
2 changes: 1 addition & 1 deletion models/netsuite2/staging/stg_netsuite2__vendors.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ final as (
entityid as entity_id,
altname as alt_name,
companyname as company_name,
datecreated as create_date_at,
cast(datecreated as {{ dbt.type_timestamp() }}) as create_date_at,
category as vendor_category_id

--The below macro adds the fields defined within your vendors_pass_through_columns variable into the staging model
Expand Down
Loading